Browse Source

sigh mixin: expect noexcept move ctor/op

Michele Caini 1 year ago
parent
commit
3d10b764eb
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/entt/entity/mixin.hpp

+ 2 - 2
src/entt/entity/mixin.hpp

@@ -158,7 +158,7 @@ public:
      * @brief Move constructor.
      * @param other The instance to move from.
      */
-    basic_sigh_mixin(basic_sigh_mixin &&other) noexcept(noexcept(underlying_type{std::move(other)}))
+    basic_sigh_mixin(basic_sigh_mixin &&other) noexcept
         : underlying_type{std::move(other)},
           owner{other.owner},
           construction{std::move(other.construction)},
@@ -191,7 +191,7 @@ public:
      * @param other The instance to move from.
      * @return This mixin.
      */
-    basic_sigh_mixin &operator=(basic_sigh_mixin &&other) noexcept(noexcept(std::declval<underlying_type>().operator=(std::move(other)))) {
+    basic_sigh_mixin &operator=(basic_sigh_mixin &&other) noexcept {
         swap(other);
         return *this;
     }