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

Fixed GCC complains about noreturn

parent fbac90ec
No related branches found
No related tags found
1 merge request!16Unified interface for attributes
Pipeline #32302 passed
This commit is part of merge request !16. Comments created here will be created in the context of that merge request.
......@@ -127,9 +127,10 @@ public:
}
template <std::size_t SIZE = std::tuple_size<std::tuple<T...>>::value>
[[noreturn]] constexpr typename std::enable_if<(SIZE == 0), const std::type_info&>::type getAttrType(std::size_t /*i*/) const {
/*[[noreturn]]*/ constexpr typename std::enable_if<(SIZE == 0), const std::type_info&>::type getAttrType(std::size_t /*i*/) const {
assert(false && "attribute not found");
return typeid(void); // avoid MSVC error C4716: "must return a value", despite [[noreturn]] attribute
// [[noreturn]] attribute is removed otherwise GCC complains because there is a return.
}
constexpr const std::tuple<T...>& getStaticAttributes() 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