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

Remove copy operations from classes in Kompute #412

Merged
merged 7 commits into from
Feb 18, 2025

Conversation

ThePseudo
Copy link
Contributor

This is a little different from what described in Issue #20, but I made all the classes in Kompute non-copy. I did not create the NonCopiable class, however the impossibility to copy the classes comes from each class: this is because I do not want to create a class without a purpose other than making the language behave as we want, and because it would not make the copy/assignment operators un-overridable, so it would be possible to do some terrible things and enable the copy on them.

As for Issue KomputeProject#20, operations should be non-copy. Instead of creating a
base NonCopyable class, I prefer to keep this inside the classes
themselves, so that we do not create new inherited structures.

Signed-off-by: Andrea Calabrese <[email protected]>
Signed-off-by: Andrea Calabrese <[email protected]>
Same as previous commit

Signed-off-by: Andrea Calabrese <[email protected]>
Signed-off-by: Andrea Calabrese <[email protected]>
Signed-off-by: Andrea Calabrese <[email protected]>
Signed-off-by: Andrea Calabrese <[email protected]>
Signed-off-by: Andrea Calabrese <[email protected]>
Signed-off-by: Andrea Calabrese <[email protected]>
Signed-off-by: Andrea Calabrese <[email protected]>
Signed-off-by: Andrea Calabrese <[email protected]>
Signed-off-by: Andrea Calabrese <[email protected]>
Signed-off-by: Andrea Calabrese <[email protected]>
Signed-off-by: Andrea Calabrese <[email protected]>
Signed-off-by: Andrea Calabrese <[email protected]>
@ThePseudo ThePseudo marked this pull request as ready for review February 11, 2025 14:50
@ThePseudo
Copy link
Contributor Author

@axsaucedo can you check if this is ok? My guess is that it should be, but I'll leave it to your review

Copy link
Member

@axsaucedo axsaucedo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - thank you for the contribution !

@axsaucedo axsaucedo merged commit 292359e into KomputeProject:master Feb 18, 2025
8 checks passed
@ThePseudo ThePseudo deleted the nocopy branch February 19, 2025 08:30
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.

2 participants