Skip to content

Commit

Permalink
Fix test build failures due to missing noexcept (gcc-12)
Browse files Browse the repository at this point in the history
alt_string has multiple member functions that should be marked noexcept.
Compilation failures result from the warning flag -Werror=noexcept and
gcc-12.
  • Loading branch information
falbrechtskirchinger committed Mar 6, 2022
1 parent 8f8a402 commit f4aa6d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/src/unit-alt-string.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,12 @@ class alt_string
}

template <typename op_type>
bool operator<(const op_type& op) const
bool operator<(const op_type& op) const noexcept
{
return str_impl < op;
}

bool operator<(const alt_string& op) const
bool operator<(const alt_string& op) const noexcept
{
return str_impl < op.str_impl;
}
Expand Down

0 comments on commit f4aa6d4

Please sign in to comment.