Skip to content
Snippets Groups Projects
Commit 58d698bb authored by Maxence Naud's avatar Maxence Naud
Browse files

Specialize Attributes size() function for EnumString struct

parent 97819e44
No related branches found
No related tags found
2 merge requests!152Update Aidge export to take a graph view has an argument instead of a...,!145Improve UI for Operator/Node/GraphView/Tensor
......@@ -12,7 +12,6 @@
#ifndef AIDGE_CORE_UTILS_ATTRIBUTES_H_
#define AIDGE_CORE_UTILS_ATTRIBUTES_H_
#include <vector>
#include <string>
#include <set>
......@@ -36,6 +35,9 @@ namespace Aidge {
template<class T, std::size_t N>
constexpr std::size_t size(T (&)[N]) { return N; }
template<std::size_t N>
constexpr std::size_t size(const char* const (&)[N]) { return N; }
/* This abstract class allows to avoid binding Attributes.
* Otherwise we would need to bind every template possible of Attributes.
* Every operators can access the methods of this class by inheriting from
......
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