diff --git a/include/aidge/utils/Parameter.hpp b/include/aidge/utils/Parameter.hpp index 6f8c7e01f0a84b3bf1aa2c2c833e9bbc0ede4a87..b3d137f9d74c8b23ec200055bab4511dc24533d1 100644 --- a/include/aidge/utils/Parameter.hpp +++ b/include/aidge/utils/Parameter.hpp @@ -157,6 +157,7 @@ public: template <typename R, std::size_t SIZE = std::tuple_size<std::tuple<T...>>::value> [[noreturn]] constexpr typename std::enable_if<(SIZE == 0), R&>::type get(std::size_t /*i*/) { assert(false && "parameter not found"); + exit(-1); } constexpr const std::tuple<T...>& getParams() const {