3 ms·
Initialization in C++ is already a mess. Making one of the core behaviours (members are initialized in declaration order) work subtly different for this case wo
by nemetroid 3y ago
Initialization in C++ is already a mess. Making one of the core behaviours (members are initialized in declaration order) work subtly different for this case would make it even more difficult for the programmer to build a correct mental model.
From what I can tell, the snippet you posted would compile fine in C++20 mode.