File tree Expand file tree Collapse file tree 2 files changed +8
-17
lines changed
bindings/python/src/inspector Expand file tree Collapse file tree 2 files changed +8
-17
lines changed Original file line number Diff line number Diff line change 2121 *
2222 */
2323
24- #include < pybind11/pybind11.h>
25- #include < pybind11/stl.h>
26-
2724#include < string>
2825
2926#include < geode/inspector/information.hpp>
3027
31- namespace pybind11
32- {
33- namespace detail
34- {
35- template < typename Type, size_t dimension >
36- struct type_caster < absl::InlinedVector< Type, dimension > >
37- : list_caster< absl::InlinedVector< Type, dimension >, Type >
38- {
39- };
40- } // namespace detail
41- } // namespace pybind11
42-
4328namespace geode
4429{
4530 template < typename ProblemType >
46- void do_define_information (
31+ inline void do_define_information (
4732 pybind11::module & module , const std::string& typestr )
4833 {
4934 using InspectionIssues = geode::InspectionIssues< ProblemType >;
@@ -64,7 +49,8 @@ namespace geode
6449 .def ( " issues_map" , &InspectionIssuesMap::issues_map )
6550 .def ( " string" , &InspectionIssuesMap::string );
6651 }
67- void define_information ( pybind11::module & module )
52+
53+ inline void define_information ( pybind11::module & module )
6854 {
6955 do_define_information< index_t >( module , " Index" );
7056 do_define_information< std::vector< index_t > >(
Original file line number Diff line number Diff line change @@ -79,6 +79,11 @@ namespace pybind11
7979 {
8080 };
8181
82+ template < typename Type, size_t dimension >
83+ struct type_caster < absl::InlinedVector< Type, dimension > >
84+ : list_caster< absl::InlinedVector< Type, dimension >, Type >
85+ {
86+ };
8287 } // namespace detail
8388} // namespace pybind11
8489
You can’t perform that action at this time.
0 commit comments