ros / geometry2

A set of ROS packages for keeping track of coordinate transforms.
190 stars 275 forks source link

Class BufferCore and class Buffer should be movable #485

Open ByLiZhao opened 3 years ago

ByLiZhao commented 3 years ago

Currently, the class BufferCore is not movable because the existence of the destructor suppresses the compiler from auto-generating a move constructor for BufferCore. Since BufferCore has a mutex as a member variable, it is already non-copyable. This makes class BufferCore and class Buffer non-copyable and non-movable. This doesn't seem right.