Skip to content

Clean RefCountObj - #9217

Merged
bryancall merged 1 commit into
apache:masterfrom
cukiernik:RefCountObj
Dec 13, 2022
Merged

Clean RefCountObj#9217
bryancall merged 1 commit into
apache:masterfrom
cukiernik:RefCountObj

Conversation

@cukiernik

Copy link
Copy Markdown
Contributor

No description provided.

@cukiernik
cukiernik marked this pull request as ready for review November 23, 2022 14:58
@ywkaras

ywkaras commented Nov 23, 2022

Copy link
Copy Markdown

Can you also do the same thing to the assignment operator?

@ywkaras
ywkaras self-requested a review November 23, 2022 19:44
@ywkaras ywkaras added this to the 10.0.0 milestone Nov 23, 2022
@cmcfarlen

Copy link
Copy Markdown
Contributor

Should the copy constructor and assignment be marked delete instead? The copy implementation doesn't semantically copy its argument so perhaps delete is better.

@ywkaras

ywkaras commented Nov 30, 2022

Copy link
Copy Markdown

@cmcfarlen the copy is OK, because the ref count will be set to zero. But for assign, the ref count should not be set to zero.

@bryancall
bryancall merged commit 5f27946 into apache:master Dec 13, 2022
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.

4 participants