[Custom construtor] How to bind a cumstom construtor which returns a shared_ptr? #288
-
In the porting guide, custom constructors. It says that o turn an existing factory function into a constructor, you will need to combine the above pattern with an invocation of the move/copy-constructor. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You might be able to cook something up by delving into the details of how |
Beta Was this translation helpful? Give feedback.
You might be able to cook something up by delving into the details of how
stl/shared_ptr.h
is implemented. But this is not a supported feature, you will need to expose the factory as a method and not a constructor.