ebu / libear

A C++ library to render ADM content according to Recommendation ITU-R BS.2127
Apache License 2.0
28 stars 12 forks source link

Protected base class of guess_cartesian_flag prevents construction with {} in C++17 #58

Closed trevorknight closed 9 months ago

trevorknight commented 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