Fix overloaded functions being hidden by subclasses (#6697)
authorVladimir Plazun/AI Tools Lab /SRR/Engineer/삼성전자 <v.plazun@samsung.com>
Wed, 21 Aug 2019 03:44:36 +0000 (06:44 +0300)
committer오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Wed, 21 Aug 2019 03:44:36 +0000 (12:44 +0900)
void IOperationVisitor::visit(const Subgraph &subgraph) was hidden by function definitions in IKernelGenerator and KernelGenerator classes
This makes nnfw fail to build using clang 9.0

Signed-off-by: Vladimir Plazun <v.plazun@samsung.com>
runtimes/neurun/backend/cpu/KernelGenerator.h
runtimes/neurun/core/include/backend/IKernelGenerator.h

index eb29773..4c76661 100644 (file)
@@ -35,6 +35,8 @@ public:
   KernelGenerator(const neurun::model::Operands &ctx,
                   const std::shared_ptr<TensorBuilder> &tensor_builder);
 
+  using IKernelGenerator::visit;
+
   void visit(const model::Subgraph &) override;
   void visit(const model::operation::Conv2DNode &) override;
   void visit(const model::operation::DepthwiseConv2DNode &) override;
index d34c935..542a553 100644 (file)
@@ -43,6 +43,8 @@ public:
   }
 
 protected:
+  using model::OperationVisitor::visit;
+
 #define OP(InternalName, IsNnApi)                                     \
   virtual void visit(const model::operation::InternalName &) override \
   {                                                                   \