Skip to content

Commit

Permalink
sigh mixin: expect noexcept move ctor/op
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Sep 12, 2024
1 parent 33578dd commit 3d10b76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/entt/entity/mixin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ class basic_sigh_mixin final: public Type {
* @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)},
Expand Down Expand Up @@ -191,7 +191,7 @@ class basic_sigh_mixin final: public Type {
* @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;
}
Expand Down

0 comments on commit 3d10b76

Please sign in to comment.