We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d6901c commit fa24fb2Copy full SHA for fa24fb2
src/error.cpp
@@ -13,7 +13,7 @@
13
namespace
14
{
15
//! Complete list of Exiv2 exception error messages
16
- constexpr std::array<const char*, static_cast<size_t>(Exiv2::ErrorCode::kerErrorCount)> errList{
+ constexpr std::array errList{
17
N_("Success"), // kerSuccess
18
N_("Error %0: arg2=%2, arg3=%3, arg1=%1."), // KerGeneralError
19
"%1", // kerErrorMessage,
@@ -92,6 +92,8 @@ namespace
92
N_("Arithmetic operation overflow"), // kerArithmeticOverflow
93
N_("Memory allocation failed"), // kerMallocFailed
94
};
95
+ static_assert(errList.size() == static_cast<size_t>(Exiv2::ErrorCode::kerErrorCount),
96
+ "errList needs to contain a error msg for every ErrorCode defined in error.hpp");
97
98
} // namespace
99
0 commit comments