fix wrap preamble

release/4.3a0
Varun Agrawal 2022-12-29 10:32:46 +05:30
parent f4420f2c8d
commit cc2183adb3
2 changed files with 7 additions and 1 deletions

View File

@ -11,3 +11,10 @@
* mutations on Python side will not be reflected on C++. * mutations on Python side will not be reflected on C++.
*/ */
#include <pybind11/stl.h> #include <pybind11/stl.h>
// NOTE: Needed since we are including pybind11/stl.h.
#ifdef GTSAM_ALLOCATOR_TBB
PYBIND11_MAKE_OPAQUE(std::vector<gtsam::Key, tbb::tbb_allocator<gtsam::Key>>);
#else
PYBIND11_MAKE_OPAQUE(std::vector<gtsam::Key>);
#endif

View File

@ -1 +0,0 @@