How to disable operator= A2 auto generation? #1042
Answered
by
JohelEGP
hackjackhack
asked this question in
Q&A
-
I tried to define a type with no assignment operator. Although documentation states that cpp2 doesn't need '=delete' because everything is opt-in but it seems A2 is always in effect. Is there a way to define move-ctor without move-assignment generated? |
Beta Was this translation helpful? Give feedback.
Answered by
JohelEGP
Mar 27, 2024
Replies: 2 comments 5 replies
-
What's A2? |
Beta Was this translation helpful? Give feedback.
5 replies
-
IIRC, by manually declaring it |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
hackjackhack
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
IIRC, by manually declaring it
private
: #468 (comment).