Skip to content
Snippets Groups Projects
Commit c7119497 authored by Olivier BICHLER's avatar Olivier BICHLER
Browse files

Added noreturn for MSVC

parent d0345bba
No related branches found
No related tags found
1 merge request!16Unified interface for attributes
Pipeline #32219 failed
......@@ -106,7 +106,7 @@ public:
}
template <typename R, std::size_t SIZE = std::tuple_size<std::tuple<T...>>::value-1>
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");
}
......@@ -121,7 +121,7 @@ public:
}
template <std::size_t SIZE = std::tuple_size<std::tuple<T...>>::value-1>
constexpr typename std::enable_if<(SIZE <= 0), std::string>::type getType(std::size_t /*i*/) const {
[[noreturn]] constexpr typename std::enable_if<(SIZE <= 0), std::string>::type getType(std::size_t /*i*/) const {
assert(false && "parameter not found");
}
......
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