Commit d6b87cb0 authored by Marian Triebe's avatar Marian Triebe

Fix compile of libcaf_python

parent d011b9e8
...@@ -482,13 +482,13 @@ pybind11::tuple tuple_from_message(const type_erased_tuple& msg) { ...@@ -482,13 +482,13 @@ pybind11::tuple tuple_from_message(const type_erased_tuple& msg) {
if (str_ptr == nullptr) { if (str_ptr == nullptr) {
set_py_exception("Unable to extract element #", i, " from message: ", set_py_exception("Unable to extract element #", i, " from message: ",
"could not get portable name of ", rtti.second->name()); "could not get portable name of ", rtti.second->name());
return {}; return pybind11::tuple{};
} }
auto kvp = bindings.find(*str_ptr); auto kvp = bindings.find(*str_ptr);
if (kvp == bindings.end()) { if (kvp == bindings.end()) {
set_py_exception(R"(Unable to add element of type ")", set_py_exception(R"(Unable to add element of type ")",
*str_ptr, R"(" to message: type is unknown to CAF)"); *str_ptr, R"(" to message: type is unknown to CAF)");
return {}; return pybind11::tuple{};
} }
auto obj = kvp->second->to_object(msg, i); auto obj = kvp->second->to_object(msg, i);
PyTuple_SetItem(result.ptr(), static_cast<int>(i), obj.release().ptr()); PyTuple_SetItem(result.ptr(), static_cast<int>(i), obj.release().ptr());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment