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
[class.union]/3 note contradicts normative wording #1073
Comments
initializer may prevent a defaulted special member function from being implicitly deleted. Fixes cplusplus#1073.
@jensmaurer |
@jabelloc: Right. However, I think the note is now correct post-my patch, although it's not completely describing the situation. But then, it's a note, not a normative statement. I don't think I should repeat all the complexity of the real rule in this note, which is just trying to say "you can have non-trivial data members in a union, but if you do, you need to do the legwork yourself". |
initializer may prevent a defaulted special member function from being implicitly deleted. Fixes #1073.
See https://groups.google.com/a/isocpp.org/d/msg/std-discussion/4BWeZosWYiY/5LKz98-dBQAJ
We should weaken the note, for instance by changing "must" to "should typically" and "will" to "will usually".
The text was updated successfully, but these errors were encountered: