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

Issue #58: Constructs struct with protected ctor with () rather than {} #59

Closed trevorknight closed 9 months ago

trevorknight commented 9 months ago

The base class of the struct has a protected constructor so this commit uses parens instead of brackets for regular construction in both C++14 and 17, rather than aggregate construction in 17. See the following for details.

https://stackoverflow.com/questions/56367480/should-this-code-fail-to-compile-in-c17

For issue #58

tomjnixon commented 9 months ago

thanks, merged in 8f6c176f7644972c35fedfbf7904beea8a76a360