Skip to content
Snippets Groups Projects
Commit 23b74f7c authored by Dr. Felix Tobias Schindler's avatar Dr. Felix Tobias Schindler
Browse files

[bindings: container-interface] make backend_type property static

parent 81bac063
No related branches found
No related tags found
No related merge requests found
......@@ -62,7 +62,9 @@ typename std::enable_if<is_container<C>::value, void>::type addbind_ContainerInt
template <class C>
typename std::enable_if<provides_backend<C>::value, void>::type addbind_ProvidesBackend(pybind11::class_<C>& c)
{
c.def_property_readonly("backend_type", [](const C& /*self*/) { return C::backend_type; });
namespace py = pybind11;
c.def_property_readonly_static("backend_type", [](py::object /*self*/) { return C::backend_type; });
}
template <class C>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment