Skip to content

Commit d23a2b2

Browse files
committed
test
1 parent 1bcf561 commit d23a2b2

File tree

2 files changed

+8
-17
lines changed

2 files changed

+8
-17
lines changed

bindings/python/src/inspector/information.hpp

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -21,29 +21,14 @@
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-
4328
namespace 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 > >(

bindings/python/src/inspector/inspector.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)