Bläddra i källkod

core: adjust noexcept policy

Michele Caini 4 år sedan
förälder
incheckning
81c044760b
2 ändrade filer med 3 tillägg och 3 borttagningar
  1. 2 2
      src/entt/core/any.hpp
  2. 1 1
      src/entt/core/ident.hpp

+ 2 - 2
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) {

+ 1 - 1
src/entt/core/ident.hpp

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