mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 21:10:33 +05:00
allow implicit conversion from py::list to Array<>
This commit is contained in:
parent
d3e0ae6fd7
commit
eceb83171f
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user