Remove this-> from decltype
The latest version of MSVC doesn't like it, and removing it doesn't seem to harm anything.
This commit is contained in:
parent
c13753a70c
commit
8d2bebbbe8
@ -1439,7 +1439,7 @@ template <typename Context> struct arg_mapper {
|
|||||||
// Only map owning types because mapping views can be unsafe.
|
// Only map owning types because mapping views can be unsafe.
|
||||||
template <typename T, typename U = format_as_t<T>,
|
template <typename T, typename U = format_as_t<T>,
|
||||||
FMT_ENABLE_IF(std::is_arithmetic<U>::value)>
|
FMT_ENABLE_IF(std::is_arithmetic<U>::value)>
|
||||||
FMT_CONSTEXPR FMT_INLINE auto map(const T& val) -> decltype(this->map(U())) {
|
FMT_CONSTEXPR FMT_INLINE auto map(const T& val) -> decltype(map(U())) {
|
||||||
return map(format_as(val));
|
return map(format_as(val));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1463,13 +1463,13 @@ template <typename Context> struct arg_mapper {
|
|||||||
!is_string<U>::value && !is_char<U>::value &&
|
!is_string<U>::value && !is_char<U>::value &&
|
||||||
!is_named_arg<U>::value &&
|
!is_named_arg<U>::value &&
|
||||||
!std::is_arithmetic<format_as_t<U>>::value)>
|
!std::is_arithmetic<format_as_t<U>>::value)>
|
||||||
FMT_CONSTEXPR FMT_INLINE auto map(T& val) -> decltype(this->do_map(val)) {
|
FMT_CONSTEXPR FMT_INLINE auto map(T& val) -> decltype(do_map(val)) {
|
||||||
return do_map(val);
|
return do_map(val);
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T, FMT_ENABLE_IF(is_named_arg<T>::value)>
|
template <typename T, FMT_ENABLE_IF(is_named_arg<T>::value)>
|
||||||
FMT_CONSTEXPR FMT_INLINE auto map(const T& named_arg)
|
FMT_CONSTEXPR FMT_INLINE auto map(const T& named_arg)
|
||||||
-> decltype(this->map(named_arg.value)) {
|
-> decltype(map(named_arg.value)) {
|
||||||
return map(named_arg.value);
|
return map(named_arg.value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user