File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -335,6 +335,7 @@ struct smart_holder {
335335 return hld;
336336 }
337337
338+ #ifdef PYBIND11_TESTS_PURE_CPP_SMART_HOLDER_POC_TEST_CPP
338339 template <typename T, typename D = std::default_delete<T>>
339340 std::unique_ptr<T, D> as_unique_ptr () {
340341 static const char *context = " as_unique_ptr" ;
@@ -344,6 +345,7 @@ struct smart_holder {
344345 release_ownership ();
345346 return std::unique_ptr<T, D>(raw_ptr);
346347 }
348+ #endif
347349
348350 template <typename T>
349351 static smart_holder from_shared_ptr (std::shared_ptr<T> shd_ptr) {
Original file line number Diff line number Diff line change 1+ #define PYBIND11_TESTS_PURE_CPP_SMART_HOLDER_POC_TEST_CPP
2+
13#include " pybind11/detail/smart_holder_poc.h"
24
35#include < functional>
You can’t perform that action at this time.
0 commit comments