core: adjust noexcept policy

This commit is contained in:
Michele Caini
2022-02-17 12:16:46 +01:00
parent b0e0e80b69
commit 81c044760b
2 changed files with 3 additions and 3 deletions

View File

@@ -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) {

View File

@@ -40,7 +40,7 @@ namespace entt {
template<typename... Types>
class identifier {
template<typename Type, std::size_t... Index>
[[nodiscard]] static constexpr id_type get(std::index_sequence<Index...>) {
[[nodiscard]] static constexpr id_type get(std::index_sequence<Index...>) ENTT_NOEXCEPT {
static_assert(std::disjunction_v<std::is_same<Type, Types>...>, "Invalid type");
return (0 + ... + (std::is_same_v<Type, type_list_element_t<Index, type_list<std::decay_t<Types>...>>> ? id_type{Index} : id_type{}));
}