| 7 | #include "nbind/api.h" |
| 8 | |
| 9 | class Array { |
| 10 | |
| 11 | public: |
| 12 | |
| 13 | Array() {} |
| 14 | |
| 15 | static std::array<int, 3> getInts() { |
| 16 | std::array<int, 3> a {{ 13, 21, 34 }}; |
| 17 | |
| 18 | return(a); |
| 19 | } |
| 20 | |
| 21 | static std::array<int, 3> callWithInts(nbind::cbFunction &callback, std::array<int, 3> a) { |
| 22 | return(callback.call<std::array<int, 3>>(a)); |
| 23 | } |
| 24 | |
| 25 | }; |
| 26 | |
| 27 | class Vector { |
| 28 |