You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
MCOL-4030: any.h non-virtual-dtor warning suppressed.
This commit is contained in:
@ -29,15 +29,21 @@ namespace anyimpl
|
||||
virtual void move(void* const* src, void** dest) = 0;
|
||||
virtual void* get_value(void** src) = 0;
|
||||
virtual size_t get_size() = 0;
|
||||
protected:
|
||||
~base_any_policy() = default;
|
||||
};
|
||||
|
||||
//inline base_any_policy::~base_any_policy() throw () {}
|
||||
|
||||
template<typename T>
|
||||
struct typed_base_any_policy : base_any_policy
|
||||
{
|
||||
virtual size_t get_size()
|
||||
{
|
||||
return sizeof(T);
|
||||
}
|
||||
}
|
||||
protected:
|
||||
~typed_base_any_policy() = default;
|
||||
};
|
||||
|
||||
template<typename T>
|
||||
@ -63,6 +69,8 @@ namespace anyimpl
|
||||
{
|
||||
return reinterpret_cast<void*>(src);
|
||||
}
|
||||
protected:
|
||||
~small_any_policy() = default;
|
||||
};
|
||||
|
||||
template<typename T>
|
||||
@ -91,6 +99,8 @@ namespace anyimpl
|
||||
{
|
||||
return *src;
|
||||
}
|
||||
protected:
|
||||
~big_any_policy() = default;
|
||||
};
|
||||
|
||||
template<typename T>
|
||||
|
Reference in New Issue
Block a user