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 std::enable_shared_from_this<Mask> {
|
||||||
public:
|
public:
|
||||||
static const ::ov::DiscreteTypeInfo& get_type_info_static() {
|
static const ::ov::DiscreteTypeInfo& get_type_info_static() {
|
||||||
static const ::ov::DiscreteTypeInfo type_info{"Mask", 0, "0"};
|
static const ::ov::DiscreteTypeInfo type_info_static{"Mask", 0, "0"};
|
||||||
return type_info;
|
return type_info_static;
|
||||||
}
|
}
|
||||||
|
|
||||||
using Ptr = std::shared_ptr<Mask>;
|
using Ptr = std::shared_ptr<Mask>;
|
||||||
|
@ -43,8 +43,8 @@ class OPENVINO_API Model : public std::enable_shared_from_this<Model> {
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
static const ::ov::DiscreteTypeInfo& get_type_info_static() {
|
static const ::ov::DiscreteTypeInfo& get_type_info_static() {
|
||||||
static const ::ov::DiscreteTypeInfo type_info{"Model", 0};
|
static const ::ov::DiscreteTypeInfo type_info_static{"Model", 0};
|
||||||
return type_info;
|
return type_info_static;
|
||||||
}
|
}
|
||||||
const ::ov::DiscreteTypeInfo& get_type_info() const {
|
const ::ov::DiscreteTypeInfo& get_type_info() const {
|
||||||
return get_type_info_static();
|
return get_type_info_static();
|
||||||
|
@ -13,9 +13,9 @@
|
|||||||
|
|
||||||
#define _OPENVINO_RTTI_WITH_TYPE_VERSION(TYPE_NAME, VERSION_NAME) \
|
#define _OPENVINO_RTTI_WITH_TYPE_VERSION(TYPE_NAME, VERSION_NAME) \
|
||||||
static const ::ov::DiscreteTypeInfo& get_type_info_static() { \
|
static const ::ov::DiscreteTypeInfo& get_type_info_static() { \
|
||||||
static ::ov::DiscreteTypeInfo type_info{TYPE_NAME, 0, VERSION_NAME}; \
|
static ::ov::DiscreteTypeInfo type_info_static{TYPE_NAME, 0, VERSION_NAME}; \
|
||||||
type_info.hash(); \
|
type_info_static.hash(); \
|
||||||
return type_info; \
|
return type_info_static; \
|
||||||
} \
|
} \
|
||||||
const ::ov::DiscreteTypeInfo& get_type_info() const override { \
|
const ::ov::DiscreteTypeInfo& get_type_info() const override { \
|
||||||
return get_type_info_static(); \
|
return get_type_info_static(); \
|
||||||
@ -26,12 +26,12 @@
|
|||||||
|
|
||||||
#define _OPENVINO_RTTI_WITH_TYPE_VERSIONS_PARENT(TYPE_NAME, VERSION_NAME, PARENT_CLASS, OLD_VERSION) \
|
#define _OPENVINO_RTTI_WITH_TYPE_VERSIONS_PARENT(TYPE_NAME, VERSION_NAME, PARENT_CLASS, OLD_VERSION) \
|
||||||
static const ::ov::DiscreteTypeInfo& get_type_info_static() { \
|
static const ::ov::DiscreteTypeInfo& get_type_info_static() { \
|
||||||
static ::ov::DiscreteTypeInfo type_info{TYPE_NAME, \
|
static ::ov::DiscreteTypeInfo type_info_static{TYPE_NAME, \
|
||||||
OLD_VERSION, \
|
OLD_VERSION, \
|
||||||
VERSION_NAME, \
|
VERSION_NAME, \
|
||||||
&PARENT_CLASS::get_type_info_static()}; \
|
&PARENT_CLASS::get_type_info_static()}; \
|
||||||
type_info.hash(); \
|
type_info_static.hash(); \
|
||||||
return type_info; \
|
return type_info_static; \
|
||||||
} \
|
} \
|
||||||
const ::ov::DiscreteTypeInfo& get_type_info() const override { \
|
const ::ov::DiscreteTypeInfo& get_type_info() const override { \
|
||||||
return get_type_info_static(); \
|
return get_type_info_static(); \
|
||||||
|
@ -20,8 +20,8 @@ class Any;
|
|||||||
class OPENVINO_API RuntimeAttribute {
|
class OPENVINO_API RuntimeAttribute {
|
||||||
public:
|
public:
|
||||||
static const DiscreteTypeInfo& get_type_info_static() {
|
static const DiscreteTypeInfo& get_type_info_static() {
|
||||||
static const ::ov::DiscreteTypeInfo type_info{"RuntimeAttribute", 0};
|
static const ::ov::DiscreteTypeInfo type_info_static{"RuntimeAttribute", 0};
|
||||||
return type_info;
|
return type_info_static;
|
||||||
}
|
}
|
||||||
virtual const DiscreteTypeInfo& get_type_info() const {
|
virtual const DiscreteTypeInfo& get_type_info() const {
|
||||||
return get_type_info_static();
|
return get_type_info_static();
|
||||||
|
Loading…
Reference in New Issue
Block a user