33 template <
typename exception_t,
typename... T>
34 constexpr
void enforce(
bool condition, T&&... args) {
36 throw exception_t(std::forward<T>(args)...);
44 template <
typename... T>
46 enforce<Exiv2::Error>(condition, err_code, std::forward<T>(args)...);
Helper structure for the Matroska tags lookup table.
Definition: matroskavideo.hpp:39
Error class for exceptions, log message class.
constexpr void enforce(bool condition, T &&...args)
Ensure that condition is true, otherwise throw an exception of the type exception_t.
Definition: enforce.hpp:34
ErrorCode
Complete list of all Exiv2 error codes.
Definition: error.hpp:162