Skip to content

Add operator=() to UUID - #1

Open
KevinNapper wants to merge 1 commit into
lancaster-university:masterfrom
KevinNapper:patch-1
Open

Add operator=() to UUID#1
KevinNapper wants to merge 1 commit into
lancaster-university:masterfrom
KevinNapper:patch-1

Conversation

@KevinNapper

Copy link
Copy Markdown

Add operator=() to UUID to cure the following compilation warning:

warning: implicitly-declared 'UUID& UUID::operator=(const UUID&)' is deprecated [-Wdeprecated-copy]
note: because 'UUID' has user-provided 'UUID::UUID(const UUID&)'

This is a reasonable warning because if it has been considered necessary to define a copy constructor (as is the case for UUID) then it is most likely that an operator=() is also required.

Add operator=() to UUID to cure the following compilation warning:

warning: implicitly-declared 'UUID& UUID::operator=(const UUID&)' is deprecated [-Wdeprecated-copy]
 note: because 'UUID' has user-provided 'UUID::UUID(const UUID&)'

This is a reasonable warning because if it has been considered necessary to define a copy constructor (as is the case for UUID) then it is most likely that an operator=() is also required.
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