To customize or not smart pointers? #5140
-
In my C++ code, I do use My My methods return and accept For that reason,
gives a compiler error that complains about So, my question is:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I found out that probably the simplest solution is to:
private:
SharedPtr(T* ptr) : std::shared_ptr<T>(ptr) {}
template <typename type_, typename... options>
friend class pybind11::class_; |
Beta Was this translation helpful? Give feedback.
I found out that probably the simplest solution is to:
template<...> class pybind11::class_
a friend class.