[exo] Using C++ 11 style static_assert (#8152)
author윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 <hyunsik.yoon@samsung.com>
Tue, 15 Oct 2019 03:29:43 +0000 (12:29 +0900)
committer이성재/On-Device Lab(SR)/Principal Engineer/삼성전자 <sj925.lee@samsung.com>
Tue, 15 Oct 2019 03:29:43 +0000 (12:29 +0900)
This modifies static_assert from c++ 17 style to c++ c++ 11 style.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
compiler/exo/src/Pass/FuseConv2DAddSubPass.cpp

index 865cf62..67f9e2c 100644 (file)
@@ -117,7 +117,8 @@ public:
   Fuser(TFLType *node)
   {
     static_assert(std::is_same<TFLType, locoex::TFLAdd>::value ||
-                  std::is_same<TFLType, locoex::TFLSub>::value);
+                      std::is_same<TFLType, locoex::TFLSub>::value,
+                  "wrong template type");
 
     _fusable_node = node;
     _graph = node->graph();