diff --git a/cruft/util/fixed_string.hpp b/cruft/util/fixed_string.hpp index 18122a23..4f5a007d 100644 --- a/cruft/util/fixed_string.hpp +++ b/cruft/util/fixed_string.hpp @@ -43,9 +43,18 @@ namespace cruft { auto begin (void) const& noexcept { return std::begin (value); } auto end (void) const& noexcept { return std::end (value); } - }; + constexpr bool + operator== (fixed_string const&) const noexcept = default; + + template + requires (M != N) + constexpr bool + operator== (fixed_string const&) const noexcept + { return false; } + }; + template fixed_string (char const (&)[N]) -> fixed_string; }