33template <
typename exception_t,
typename... T>
34constexpr void enforce(
bool condition, T&&... args) {
36 throw exception_t(std::forward<T>(args)...);
44template <
typename... T>
46 enforce<Exiv2::Error>(condition, err_code, std::forward<T>(args)...);
Error class for exceptions, log message class.
Helper structure for the Matroska tags lookup table.
Definition matroskavideo.hpp:39
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