Commit 89b3019e authored by baojun's avatar baojun Committed by Scott Cyphers

resolve compiler warning (#3923)

parent 4fe2da61
...@@ -32,6 +32,7 @@ namespace ngraph ...@@ -32,6 +32,7 @@ namespace ngraph
{ {
public: public:
virtual const DiscreteTypeInfo& get_type_info() const = 0; virtual const DiscreteTypeInfo& get_type_info() const = 0;
virtual ~ValueAccessor() {}
}; };
/// ValueAccessor<T> represents values that support get/set through T /// ValueAccessor<T> represents values that support get/set through T
...@@ -39,7 +40,6 @@ namespace ngraph ...@@ -39,7 +40,6 @@ namespace ngraph
class ValueAccessor : public ValueAccessor<void> class ValueAccessor : public ValueAccessor<void>
{ {
public: public:
virtual ~ValueAccessor() {}
virtual const DiscreteTypeInfo& get_type_info() const = 0; virtual const DiscreteTypeInfo& get_type_info() const = 0;
/// Returns the value /// Returns the value
virtual const T& get() = 0; virtual const T& get() = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment