Skip to content
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

Class BufferCore and class Buffer should be movable #485

Open
wants to merge 4 commits into
base: noetic-devel
Choose a base branch
from
Open

Class BufferCore and class Buffer should be movable #485

wants to merge 4 commits into from

Conversation

ByLiZhao
Copy link

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.

BufferCore should be movable.
Buffer should be movable
also add move assignment operator to BufferCore
also add move assignment operator
ooeygui pushed a commit to ms-iot/geometry2 that referenced this pull request Oct 12, 2022
@ahcorde ahcorde added the noetic label Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants