Skip to content
Snippets Groups Projects

Unified interface for attributes

Merged Olivier BICHLER requested to merge unified_params into main
1 file
+ 2
0
Compare changes
  • Side-by-side
  • Inline
@@ -15,6 +15,7 @@
#include <tuple>
#include <cassert>
#include <cstddef>
#include <typeinfo>
#include "aidge/utils/Attributes.hpp"
@@ -128,6 +129,7 @@ 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 {
assert(false && "attribute not found");
return typeid(void); // avoid MSVC error C4716: "must return a value", despite [[noreturn]] attribute
}
constexpr const std::tuple<T...>& getStaticAttributes() const {
Loading