Matroska-Org / libebml

a C++ library to parse EBML files
GNU Lesser General Public License v2.1
140 stars 47 forks source link

Rework Id creation to check statically for invalid IDs #230

Closed robUx4 closed 9 months ago

robUx4 commented 9 months ago

Maybe it's possible with std::enable_if but I haven't managed to do it. Not sure it would be usable on reading though.

We don't need to pass the length of the ID anymore (we may not even store it anymore).

libmatroska will need this to build https://github.com/Matroska-Org/libmatroska/pull/169