Introduce default constructor for `Graph::Index` so wrapping objects can
have a default constructor.
Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
#define __NEURUN_GRAPH_INDEX_H__
#include <functional>
+#include <limits>
#include <stdint.h>
namespace neurun
template <typename T, typename DummyTag> class Index
{
+private:
+ static const T UNDEFINED = std::numeric_limits<T>::max();
+
public:
+ explicit Index(void) : _index{UNDEFINED} {}
explicit Index(T o) : _index{o} {}
explicit Index(int32_t o) : _index{static_cast<T>(o)} {} // For legacy code compatibility
Index(const Index &o) : _index{o._index} {}