geometry2 icon indicating copy to clipboard operation
geometry2 copied to clipboard

Class BufferCore and class Buffer should be movable

Open ByLiZhao opened this issue 4 years ago • 0 comments

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.

ByLiZhao avatar Nov 20 '20 06:11 ByLiZhao