diff --git a/src/entt/core/any.hpp b/src/entt/core/any.hpp index fbbc75298..4383766f3 100644 --- a/src/entt/core/any.hpp +++ b/src/entt/core/any.hpp @@ -192,7 +192,7 @@ public: * @brief Move constructor. * @param other The instance to move from. */ - basic_any(basic_any &&other) ENTT_NOEXCEPT + basic_any(basic_any &&other) : instance{}, info{other.info}, vtable{other.vtable}, @@ -229,7 +229,7 @@ public: * @param other The instance to move from. * @return This any object. */ - basic_any &operator=(basic_any &&other) ENTT_NOEXCEPT { + basic_any &operator=(basic_any &&other) { reset(); if(other.vtable) { diff --git a/src/entt/core/ident.hpp b/src/entt/core/ident.hpp index 5c3a6330d..1d64fdc39 100644 --- a/src/entt/core/ident.hpp +++ b/src/entt/core/ident.hpp @@ -40,7 +40,7 @@ namespace entt { template class identifier { template - [[nodiscard]] static constexpr id_type get(std::index_sequence) { + [[nodiscard]] static constexpr id_type get(std::index_sequence) ENTT_NOEXCEPT { static_assert(std::disjunction_v...>, "Invalid type"); return (0 + ... + (std::is_same_v...>>> ? id_type{Index} : id_type{})); }