mirror of
https://github.com/pybind/pybind11.git
synced 2026-06-06 06:11:25 +00:00
Use decltype to deduce return type of PyThread_create_key
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
|
||||
double my_func(int x, float y, double z) {
|
||||
std::cout << "my_func(x:int=" << x << ", y:float=" << y << ", z:float=" << z << ")" << std::endl;
|
||||
return x*y*z;
|
||||
return (float) x*y*z;
|
||||
}
|
||||
|
||||
std::complex<double> my_func3(std::complex<double> c) {
|
||||
|
||||
Reference in New Issue
Block a user