use named arg with static name in compile-time API

to get arg index by name at compile-time
This commit is contained in:
Alexey Ochapov
2021-04-18 13:59:24 +03:00
committed by Victor Zverovich
parent ce6e7d8620
commit ca821982ee
4 changed files with 115 additions and 39 deletions

View File

@@ -451,7 +451,8 @@ template <typename Char> class basic_string_view {
return result;
}
friend bool operator==(basic_string_view lhs, basic_string_view rhs) {
FMT_CONSTEXPR_CHAR_TRAITS friend bool operator==(basic_string_view lhs,
basic_string_view rhs) {
return lhs.compare(rhs) == 0;
}
friend bool operator!=(basic_string_view lhs, basic_string_view rhs) {