-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Description
Hi,
I came across the following issue today which seems like a bug.
I have a class Foo that produces Bar and returns a unique_ptr to an instance of Bar.
On running a C++11 executable it works fine (little main in the code attached).
On running python, it craps out with
RuntimeError: return_value_policy = move, but the object is neither movable nor copyable!
Am I missing something ? The class Bar is moveable, and copyable...
Code attached to reproduce.
Metadata
Metadata
Assignees
Labels
No labels