commit | 20ee9352038f961b5a9d76c986c9ae088f8ea969 | [log] [tgz] |
---|---|---|
author | Boris Schäling <boris@theboostcpplibraries.com> | Sat May 28 12:26:18 2016 +0200 |
committer | Boris Schäling <boris@theboostcpplibraries.com> | Sat May 28 12:26:18 2016 +0200 |
tree | 295401fb9077ab5085623c1c640ce6304fd4a567 | |
parent | 896564453671eac84baa0fe200b1163b790695b8 [diff] [blame] |
Use decltype to deduce return type of PyThread_create_key
diff --git a/example/example4.cpp b/example/example4.cpp index 281eafe..7e17864 100644 --- a/example/example4.cpp +++ b/example/example4.cpp
@@ -38,7 +38,7 @@ 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() {