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

Implement deep copy. #932

Closed

Conversation

SherifMEldeeb
Copy link

Fixed issue

Shallow copying of the internal buffer when copying the class.

Current Behavior

The default copy constructor perform a shallow copy for the dynamic allocated internal buffer.

Proposed solution

Since the buffer is internal it`s reasonable to provide a copy constructor which perform a deep copy.

Signed-off-by: sherif.eldeeb <[email protected]>
@SherifMEldeeb SherifMEldeeb deleted the deep_copy_support branch October 21, 2024 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant