-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Many objects are not std::move-able #76
Comments
Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters). IssueForNewDevelopers |
Note that you could also use the "rule of 0". This means that if you don't create any special member functions, you will also get default move constructors. For example for Quaternion this would means that you should delete the empty destructor. |
… Pose Closes gazebosim#76 Signed-off-by: Nick Lamprianidis <[email protected]>
… Pose Closes gazebosim#76 Signed-off-by: Nick Lamprianidis <[email protected]>
… Pose (#172) Closes #76 Signed-off-by: Nick Lamprianidis <[email protected]> Co-authored-by: Louise Poubel <[email protected]>
Hello @chapulina , I am new to this repository but i have experience with simulators. gazebo is an interesting project in my opinion i can contribute to. please do let me know if this issue is still unassigned, i can work into this for the beginning. thanks |
Hi @Aetherbase, If you want to contribute to the Ignition project you can follow these steps:
You can assign me as a reviewer if you decide to open a new PR. |
thanks @ahcorde will do as suggested. i was just asking to confirm if anyone is already assigned to work on this issue. |
nope! You can work on it ;) |
If we're bumping gz-math, this would be a great opportunity to clean this up. |
Original report (archived issue) by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).
In order to use
std::move
semantics in c++ (like assignment of unique_ptr's), objects need to have move constructor and move assignment operators defined (also known as the rule of 5. This lets you do things like this:but that doesn't currently work because we aren't following the rule of 5 for many of our classes. I mention this because I was trying to use it in a gazebo plugin and it didn't work. I've added some statements to unit tests in b25df89 that illustrate this failure to compile.
The text was updated successfully, but these errors were encountered: