Skip to content
Snippets Groups Projects
Commit 4f141900 authored by Cyril Moineau's avatar Cyril Moineau
Browse files

[Paramerter] Add exit(-1) to end get recursion.

parent d3dbe179
No related branches found
No related tags found
1 merge request!9Fuse bn
Pipeline #32379 passed with warnings
...@@ -157,6 +157,7 @@ public: ...@@ -157,6 +157,7 @@ public:
template <typename R, std::size_t SIZE = std::tuple_size<std::tuple<T...>>::value> 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*/) { [[noreturn]] constexpr typename std::enable_if<(SIZE == 0), R&>::type get(std::size_t /*i*/) {
assert(false && "parameter not found"); assert(false && "parameter not found");
exit(-1);
} }
constexpr const std::tuple<T...>& getParams() const { constexpr const std::tuple<T...>& getParams() const {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment