mirror of
https://github.com/pybind/pybind11.git
synced 2026-06-06 07:51:47 +00:00
Use decltype to deduce return type of PyThread_create_key
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user