You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each member-declaration in the member-specification of an anonymous union shall either define one or more public non-static data members or be a static_assert-declaration. Nested types, anonymous unions, and functions shall not be declared within an anonymous union.
Special member functions are also functions. However, the implicitly declared special members didn't explicitly reject the consideration for anonymous unions(as long as, there is no user-declared one or satisfy some conditions).
The text was updated successfully, but these errors were encountered:
xmh0511
changed the title
[partial of CWG1621] All implicitly declared special members should be excluded from anonymous union
[partial of CWG1621] All implicitly declared special member functions should be excluded from anonymous union
Sep 26, 2021
xmh0511
changed the title
[partial of CWG1621] All implicitly declared special member functions should be excluded from anonymous union
[partial of CWG1621] All implicitly declared special member functions should be excluded from anonymous unions
Sep 26, 2021
xmh0511
changed the title
[partial of CWG1621] All implicitly declared special member functions should be excluded from anonymous unions
[partial of CWG1621] All implicitly declared special member functions should be excluded from anonymous union members
Sep 26, 2021
xmh0511
changed the title
[partial of CWG1621] All implicitly declared special member functions should be excluded from anonymous union members
[class.union.anon] p1 All implicitly declared special member functions for anonymous union violates that rule
Sep 26, 2021
xmh0511
changed the title
[class.union.anon] p1 All implicitly declared special member functions for anonymous union violates that rule
[class.union.anon] p1 All implicitly declared special member functions for anonymous union violate that rule
Sep 26, 2021
[class.union.anon] p1 explicitly says
Special member functions are also functions. However, the implicitly declared special members didn't explicitly reject the consideration for anonymous unions(as long as, there is no user-declared one or satisfy some conditions).
The text was updated successfully, but these errors were encountered: