Skip to content

Commit

Permalink
Shared_ptr fix
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-urbanczyk committed Apr 22, 2020
1 parent f57ea4b commit 646b5f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OCP_specific.inc
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ template<typename T> struct nodelete{

template<typename T> using shared_ptr_nodelete = shared_ptr<T,nodelete>;

PYBIND11_DECLARE_HOLDER_TYPE(T, shared_ptr<T>, true);
PYBIND11_DECLARE_HOLDER_TYPE(T, shared_ptr_nodelete<T>, true);
PYBIND11_DECLARE_HOLDER_TYPE(T, shared_ptr<T>);
PYBIND11_DECLARE_HOLDER_TYPE(T, shared_ptr_nodelete<T>);

0 comments on commit 646b5f3

Please sign in to comment.