Skip to content

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