mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40: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::arg("vec"), "Makes array with given list of elements")
|
||||||
|
|
||||||
;
|
;
|
||||||
|
py::implicitly_convertible<std::vector<T>, TArray>();
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
|
Loading…
Reference in New Issue
Block a user