diff --git a/include/utempl/constexpr_string.hpp b/include/utempl/constexpr_string.hpp index caf0bb8..cfb88d0 100644 --- a/include/utempl/constexpr_string.hpp +++ b/include/utempl/constexpr_string.hpp @@ -51,6 +51,16 @@ struct ConstexprString { inline constexpr bool operator==(std::string_view other) const { return static_cast(*this) == other; }; + inline constexpr bool operator==(const ConstexprString& other) const { + return static_cast(*this) == static_cast(other); + }; + template + inline constexpr bool operator==(const ConstexprString& other) const { + return false; + }; + inline constexpr bool operator==(const std::string& other) const { + return static_cast(*this) == other; + }; template inline constexpr auto operator+(const ConstexprString& other) -> ConstexprString { ConstexprString response;