Box It!

  • + 0 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.