From 2e7392e7c27ad5f1b034fcc35068e467270d4b17 Mon Sep 17 00:00:00 2001 From: Victor Poughon <victor.poughon@cnes.fr> Date: Mon, 25 Mar 2019 09:47:22 +0100 Subject: [PATCH] BUG: add message to static_assert --- Modules/Wrappers/ApplicationEngine/include/otbWrapperTypes.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Modules/Wrappers/ApplicationEngine/include/otbWrapperTypes.h b/Modules/Wrappers/ApplicationEngine/include/otbWrapperTypes.h index 440c99a4a1..8418f0fb2f 100644 --- a/Modules/Wrappers/ApplicationEngine/include/otbWrapperTypes.h +++ b/Modules/Wrappers/ApplicationEngine/include/otbWrapperTypes.h @@ -91,7 +91,8 @@ constexpr char const* parameterTypesStrings [] = { "InputProcessXML", "Bool" }; -static_assert(std::extent<decltype(parameterTypesStrings)>::value == ParameterType_MAX__); +static_assert(std::extent<decltype(parameterTypesStrings)>::value == ParameterType_MAX__, + "Wrong number of parameters in parameterTypesStrings"); } // Free functions to convert from and to std::string -- GitLab