Skip to content

Commit

Permalink
mixin: refine noexcept-ness
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Sep 6, 2024
1 parent d0a23fd commit c3826c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/entt/entity/mixin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,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
basic_sigh_mixin(basic_sigh_mixin &&other) noexcept(noexcept(underlying_type{std::move(other)}))
: underlying_type{std::move(other)},
owner{other.owner},
construction{std::move(other.construction)},
Expand All @@ -137,7 +137,7 @@ class basic_sigh_mixin final: public Type {
update{std::move(other.update), allocator} {}

/*! @brief Default destructor. */
~basic_sigh_mixin() noexcept override = default;
~basic_sigh_mixin() noexcept(noexcept(std::declval<underlying_type>().~underlying_type())) override = default;

/**
* @brief Default copy assignment operator, deleted on purpose.
Expand All @@ -150,7 +150,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 {
basic_sigh_mixin &operator=(basic_sigh_mixin &&other) noexcept(noexcept(std::declval<underlying_type>().operator=(std::move(other)))) {
owner = other.owner;
construction = std::move(other.construction);
destruction = std::move(other.destruction);
Expand Down

0 comments on commit c3826c7

Please sign in to comment.