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
{{ message }}
Repository navigation
[BUG] @basic_value default constructor is not implicit #553
But aggregates of basic_values with the generated default constructor
can't be value initialized or initialized from an empty list (https://cpp2.godbolt.org/z/f76WbYv4P):
Activity
JohelEGP commentedon Aug 23, 2023
JohelEGP commentedon Nov 14, 2023
See https://cpp2.godbolt.org/z/8fE3sGxvn:
std::semiregular.operator=: (inout this, _: i32) = a = _;.t()also "fixes" it, but can introduce performance regressions (just like [BUG] The meaning ofoperator=with multiple non-thisparameters #451).JohelEGP commentedon Jan 2, 2024
But aggregates of
basic_values with the generated default constructorcan't be
value initialized orinitialized from an empty list (https://cpp2.godbolt.org/z/f76WbYv4P):