ecorm / cppwamp

C++ client library for the WAMP protocol.
Boost Software License 1.0
35 stars 9 forks source link

Moved ScopedRegistations and ScopedSubscriptions should be rendered impotent #82

Closed ecorm closed 9 years ago

ecorm commented 9 years ago

When a ScopedRegistation is moved, the source object is still able to unregister the registration when destroyed. This leads to registrations being accidentally unregistered when a ScopedRegistation is moved to another object.

The same problem occurs with ScopedSubscription.

ecorm commented 9 years ago

This is caused by Subscription's implicit move constructor/assignment not resetting the subscriber_ member of the source object. Same thing for Registration and the callee_ member.

This is now fixed in our private repo. Will be published to the public GitHub repo soon.