Make map static

This commit is contained in:
Victor Zverovich
2024-09-01 09:18:47 -07:00
parent 4a55b0d5fd
commit 985c3399d1
3 changed files with 20 additions and 20 deletions

View File

@@ -369,9 +369,8 @@ template <typename Context> struct range_mapper {
}
template <typename T,
FMT_ENABLE_IF(!has_formatter<remove_cvref_t<T>, Context>::value)>
static auto map(T&& value)
-> decltype(mapper().map(static_cast<T&&>(value))) {
return mapper().map(static_cast<T&&>(value));
static auto map(T&& value) -> decltype(mapper::map(static_cast<T&&>(value))) {
return mapper::map(static_cast<T&&>(value));
}
};