diff --git a/src/core/include/openvino/core/type/element_type.hpp b/src/core/include/openvino/core/type/element_type.hpp index f9d670328397c5..7e0acbf162ea5c 100644 --- a/src/core/include/openvino/core/type/element_type.hpp +++ b/src/core/include/openvino/core/type/element_type.hpp @@ -74,7 +74,7 @@ class OPENVINO_API Type { constexpr Type(const Type&) = default; constexpr Type(const Type_t t) : m_type{t} {} explicit Type(const std::string& type); - Type& operator=(const Type&) = default; + constexpr Type& operator=(const Type&) = default; std::string c_type_string() const; size_t size() const; size_t hash() const;