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

@@ -38,7 +38,7 @@ void test_function2(EMyEnumeration k) {
float test_function3(int i) {
std::cout << "test_function(" << i << ")" << std::endl;
return i / 2.f;
return (float) i / 2.f;
}
py::bytes return_bytes() {