Skip to content

Commit

Permalink
Qualify a name in a noexcept clause for MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
eliaskosunen committed May 23, 2024
1 parent 87f37a1 commit 1b0d505
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions include/scn/scan.h
Original file line number Diff line number Diff line change
Expand Up @@ -599,9 +599,10 @@ struct SCN_TRIVIAL_ABI expected_operations_base<T, E, false>
private:
template <typename Other>
void construct_common(Other&& other) noexcept(
noexcept(construct(std::forward<Other>(other).get_value())) &&
noexcept(
construct_unexpected(std::forward<Other>(other).get_unexpected())))
noexcept(expected_storage_base<T, E>::construct(
std::forward<Other>(other).get_value())) &&
noexcept(expected_storage_base<T, E>::construct_unexpected(
std::forward<Other>(other).get_unexpected())))
{
if (other.has_value()) {
this->construct(std::forward<Other>(other).get_value());
Expand Down

0 comments on commit 1b0d505

Please sign in to comment.