Closed trevorknight closed 9 months ago
When building with C++17, the {} are interpreted as aggregate construction. Luckily, changing to parentheses gets the correct result for both C++14 and 17.
https://stackoverflow.com/questions/56367480/should-this-code-fail-to-compile-in-c17
When building with C++17, the {} are interpreted as aggregate construction. Luckily, changing to parentheses gets the correct result for both C++14 and 17.
https://stackoverflow.com/questions/56367480/should-this-code-fail-to-compile-in-c17