|
|
@@ -304,7 +304,7 @@ class meta_any {
|
|
|
using compare_fn_type = bool(const void *, const void *);
|
|
|
using copy_fn_type = void *(storage_type &, const void *);
|
|
|
using destroy_fn_type = void(void *);
|
|
|
- using steal_fn_type = void *(storage_type &, void *, destroy_fn_type *) ENTT_NOEXCEPT;
|
|
|
+ using steal_fn_type = void *(storage_type &, void *, destroy_fn_type *);
|
|
|
|
|
|
template<typename Type, typename = std::void_t<>>
|
|
|
struct type_traits {
|
|
|
@@ -329,7 +329,7 @@ class meta_any {
|
|
|
return instance.release();
|
|
|
}
|
|
|
|
|
|
- static void * steal(storage_type &to, void *from, destroy_fn_type *) ENTT_NOEXCEPT {
|
|
|
+ static void * steal(storage_type &to, void *from, destroy_fn_type *) {
|
|
|
auto *instance = static_cast<Type *>(from);
|
|
|
new (&to) Type *{instance};
|
|
|
return instance;
|
|
|
@@ -355,7 +355,7 @@ class meta_any {
|
|
|
return new (&storage) Type{*static_cast<const Type *>(instance)};
|
|
|
}
|
|
|
|
|
|
- static void * steal(storage_type &to, void *from, destroy_fn_type *destroy_fn) ENTT_NOEXCEPT {
|
|
|
+ static void * steal(storage_type &to, void *from, destroy_fn_type *destroy_fn) {
|
|
|
void *instance = new (&to) Type{std::move(*static_cast<Type *>(from))};
|
|
|
destroy_fn(from);
|
|
|
return instance;
|