You are viewing a single comment's thread. Return to all comments →
C++20 is "broken". One can define the default constructor as
Box() = default;
All members will then be initialized to default value, i.e.: int => 0
int => 0
But if you do that instead of: Box(): l{0}, b{0}, h{0} {}, several testcases will fail.
Box(): l{0}, b{0}, h{0} {}
And the same applies to the default copy constructor. Given that is "clang", the compiler switches are not porperly applied.
Seems like cookies are disabled on this browser, please enable them to open this website
Box It!
You are viewing a single comment's thread. Return to all comments →
C++20 is "broken". One can define the default constructor as
Box() = default;
All members will then be initialized to default value, i.e.:
int => 0
But if you do that instead of:
Box(): l{0}, b{0}, h{0} {}
, several testcases will fail.And the same applies to the default copy constructor. Given that is "clang", the compiler switches are not porperly applied.