You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
486 B

  1. #pragma once
  2. #include "config.h"
  3. #include <pybind11/pybind11.h>
  4. #include <pybind11/operators.h>
  5. #include <pybind11/stl.h>
  6. #include <tuple>
  7. namespace py = pybind11;
  8. using namespace pybind11::literals;
  9. #if PY_MAJOR_VERSION >= 3
  10. #define PY_DIV "__truediv__"
  11. #define PY_RDIV "__rtruediv__"
  12. #else
  13. #define PY_DIV "__div__"
  14. #define PY_RDIV "__rdiv__"
  15. #endif
  16. PYBIND11_DECLARE_HOLDER_TYPE(T, std::shared_ptr<T>)
  17. PYBIND11_DECLARE_HOLDER_TYPE(T, std::shared_ptr<T const>)
  18. #include "boost.h"