Use decltype to deduce return type of PyThread_create_key

This commit is contained in:
Boris Schäling
2016-05-28 12:26:18 +02:00
parent 8965644536
commit 20ee935203
5 changed files with 6 additions and 6 deletions

View File

@@ -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) {