Fixed 4458 warning for Windows (#10418)
This commit is contained in:
parent
5b8b698f88
commit
434d7bbecc
@ -29,8 +29,8 @@ class Mask : public std::vector<std::set<uint64_t>>,
|
||||
public std::enable_shared_from_this<Mask> {
|
||||
public:
|
||||
static const ::ov::DiscreteTypeInfo& get_type_info_static() {
|
||||
static const ::ov::DiscreteTypeInfo type_info{"Mask", 0, "0"};
|
||||
return type_info;
|
||||
static const ::ov::DiscreteTypeInfo type_info_static{"Mask", 0, "0"};
|
||||
return type_info_static;
|
||||
}
|
||||
|
||||
using Ptr = std::shared_ptr<Mask>;
|
||||
|
@ -43,8 +43,8 @@ class OPENVINO_API Model : public std::enable_shared_from_this<Model> {
|
||||
|
||||
public:
|
||||
static const ::ov::DiscreteTypeInfo& get_type_info_static() {
|
||||
static const ::ov::DiscreteTypeInfo type_info{"Model", 0};
|
||||
return type_info;
|
||||
static const ::ov::DiscreteTypeInfo type_info_static{"Model", 0};
|
||||
return type_info_static;
|
||||
}
|
||||
const ::ov::DiscreteTypeInfo& get_type_info() const {
|
||||
return get_type_info_static();
|
||||
|
@ -11,14 +11,14 @@
|
||||
|
||||
#define _OPENVINO_RTTI_WITH_TYPE(TYPE_NAME) _OPENVINO_RTTI_WITH_TYPE_VERSION(TYPE_NAME, "util")
|
||||
|
||||
#define _OPENVINO_RTTI_WITH_TYPE_VERSION(TYPE_NAME, VERSION_NAME) \
|
||||
static const ::ov::DiscreteTypeInfo& get_type_info_static() { \
|
||||
static ::ov::DiscreteTypeInfo type_info{TYPE_NAME, 0, VERSION_NAME}; \
|
||||
type_info.hash(); \
|
||||
return type_info; \
|
||||
} \
|
||||
const ::ov::DiscreteTypeInfo& get_type_info() const override { \
|
||||
return get_type_info_static(); \
|
||||
#define _OPENVINO_RTTI_WITH_TYPE_VERSION(TYPE_NAME, VERSION_NAME) \
|
||||
static const ::ov::DiscreteTypeInfo& get_type_info_static() { \
|
||||
static ::ov::DiscreteTypeInfo type_info_static{TYPE_NAME, 0, VERSION_NAME}; \
|
||||
type_info_static.hash(); \
|
||||
return type_info_static; \
|
||||
} \
|
||||
const ::ov::DiscreteTypeInfo& get_type_info() const override { \
|
||||
return get_type_info_static(); \
|
||||
}
|
||||
|
||||
#define _OPENVINO_RTTI_WITH_TYPE_VERSION_PARENT(TYPE_NAME, VERSION_NAME, PARENT_CLASS) \
|
||||
@ -26,12 +26,12 @@
|
||||
|
||||
#define _OPENVINO_RTTI_WITH_TYPE_VERSIONS_PARENT(TYPE_NAME, VERSION_NAME, PARENT_CLASS, OLD_VERSION) \
|
||||
static const ::ov::DiscreteTypeInfo& get_type_info_static() { \
|
||||
static ::ov::DiscreteTypeInfo type_info{TYPE_NAME, \
|
||||
OLD_VERSION, \
|
||||
VERSION_NAME, \
|
||||
&PARENT_CLASS::get_type_info_static()}; \
|
||||
type_info.hash(); \
|
||||
return type_info; \
|
||||
static ::ov::DiscreteTypeInfo type_info_static{TYPE_NAME, \
|
||||
OLD_VERSION, \
|
||||
VERSION_NAME, \
|
||||
&PARENT_CLASS::get_type_info_static()}; \
|
||||
type_info_static.hash(); \
|
||||
return type_info_static; \
|
||||
} \
|
||||
const ::ov::DiscreteTypeInfo& get_type_info() const override { \
|
||||
return get_type_info_static(); \
|
||||
|
@ -20,8 +20,8 @@ class Any;
|
||||
class OPENVINO_API RuntimeAttribute {
|
||||
public:
|
||||
static const DiscreteTypeInfo& get_type_info_static() {
|
||||
static const ::ov::DiscreteTypeInfo type_info{"RuntimeAttribute", 0};
|
||||
return type_info;
|
||||
static const ::ov::DiscreteTypeInfo type_info_static{"RuntimeAttribute", 0};
|
||||
return type_info_static;
|
||||
}
|
||||
virtual const DiscreteTypeInfo& get_type_info() const {
|
||||
return get_type_info_static();
|
||||
|
Loading…
Reference in New Issue
Block a user