Skip to content

Commit

Permalink
Fix undefined type for pair in test_module
Browse files Browse the repository at this point in the history
  • Loading branch information
barche committed Jun 16, 2024
1 parent 6e8562e commit 65fb7a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/test_module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ JLCXX_MODULE register_test_module(jlcxx::Module& mod)
mod.add_type<Foo>("Foo")
.method("getx", &Foo::getx);

mod.add_type<std::pair<int,Foo>>("FooPair");

mod.method("vectortest", [] (std::vector<Foo>) {});
mod.method("pairtest", [] (std::vector<std::pair<int,Foo>>) {});

Expand Down

0 comments on commit 65fb7a3

Please sign in to comment.