allow implicit conversion from py::list to Array<>

This commit is contained in:
mhochsteger@cerbsim.com 2022-02-21 12:02:30 +01:00
parent d3e0ae6fd7
commit eceb83171f

View File

@ -261,6 +261,7 @@ namespace ngcore
}), py::arg("vec"), "Makes array with given list of elements")
;
py::implicitly_convertible<std::vector<T>, TArray>();
}
template <typename T>