Skip to content

Commit

Permalink
Add constexpr to Type attribute adapter
Browse files Browse the repository at this point in the history
Signed-off-by: Raasz, Pawel <[email protected]>
  • Loading branch information
praasz committed Jan 23, 2025
1 parent 9134a08 commit 08f5388
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/include/openvino/core/type/element_type.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,12 +283,12 @@ template <>
class OPENVINO_API AttributeAdapter<ov::element::Type> : public ValueAccessor<std::string> {
public:
OPENVINO_RTTI("AttributeAdapter<ov::element::Type>");
AttributeAdapter(ov::element::Type& value) : m_ref(value) {}
constexpr AttributeAdapter(ov::element::Type& value) : m_ref(value) {}

const std::string& get() override;
void set(const std::string& value) override;

operator ov::element::Type&() {
constexpr operator ov::element::Type&() {
return m_ref;
}

Expand Down

0 comments on commit 08f5388

Please sign in to comment.