[neurun] Explicit tag struct declaration (#4459)
author이한종/On-Device Lab(SR)/Engineer/삼성전자 <hanjoung.lee@samsung.com>
Fri, 22 Feb 2019 02:24:41 +0000 (11:24 +0900)
committer오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Fri, 22 Feb 2019 02:24:41 +0000 (11:24 +0900)
Explicitly declare `struct IndexTag` which is for distinguishing what
kind of index type is this.
`IO::Index` and `operand::Index` were same type before since they are
resolved to same `IndexTag`. (Probably `::IndexTag`).

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
runtimes/neurun/src/model/operand/Index.h
runtimes/neurun/src/model/operation/Index.h

index 1c84ba4..358a0ae 100644 (file)
@@ -26,7 +26,8 @@ namespace model
 namespace operand
 {
 
-using Index = ::neurun::graph::Index<uint32_t, struct IndexTag>;
+struct IndexTag;
+using Index = ::neurun::graph::Index<uint32_t, IndexTag>;
 
 } // namespace operand
 } // namespace model
@@ -41,7 +42,8 @@ namespace operand
 namespace IO
 {
 
-using Index = ::neurun::graph::Index<uint32_t, struct IndexTag>;
+struct IndexTag;
+using Index = ::neurun::graph::Index<uint32_t, IndexTag>;
 
 } // namespace IO
 } // namespace operand
index e03dd74..5e0952a 100644 (file)
@@ -26,7 +26,8 @@ namespace model
 namespace operation
 {
 
-using Index = ::neurun::graph::Index<uint32_t, struct IndexTag>;
+struct IndexTag;
+using Index = ::neurun::graph::Index<uint32_t, IndexTag>;
 
 } // namespace operation
 } // namespace model