Skip to content
Snippets Groups Projects
Unverified Commit 7cd3c8e8 authored by csy0225's avatar csy0225 Committed by GitHub
Browse files

Fix compile problem when open -Wnon-virtual-dtor compile flag (#10705)

* Fix compile problem when open -Wnon-virtual-dtor compile flag

* update code style

* fix the code style
parent d3ded2fc
No related branches found
Tags xorg-server-1.14.99.2
No related merge requests found
......@@ -541,6 +541,8 @@ class OPENVINO_API Any {
template <typename... Args>
Impl(Args&&... args) : value(std::forward<Args>(args)...) {}
virtual ~Impl(){};
const std::type_info& type_info() const override {
return typeid(T);
}
......
......@@ -38,6 +38,9 @@ public:
/// \brief Returns the identifier of corresponding variable.
virtual std::string get_variable_id() const = 0;
protected:
virtual ~VariableExtension(){};
protected:
std::shared_ptr<Variable> m_variable;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment