From 0b6e6730e4d87d47b05eed449933ed79b030d1bc Mon Sep 17 00:00:00 2001 From: "Raasz, Pawel" Date: Thu, 23 Jan 2025 13:41:51 +0000 Subject: [PATCH] Make Type copy assign operator constexpr Signed-off-by: Raasz, Pawel --- src/core/include/openvino/core/type/element_type.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;