mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 02:37:36 +02:00
Workaround to Intel compiler (#2758)
This commit is contained in:
committed by
GitHub
parent
c71b070168
commit
a44716f58e
@ -1431,8 +1431,8 @@ template <typename Context> struct arg_mapper {
|
|||||||
!std::is_const<remove_reference_t<T>>::value ||
|
!std::is_const<remove_reference_t<T>>::value ||
|
||||||
has_fallback_formatter<U, char_type>::value> {};
|
has_fallback_formatter<U, char_type>::value> {};
|
||||||
|
|
||||||
#if FMT_MSC_VER != 0 && FMT_MSC_VER < 1910
|
#if (FMT_MSC_VER != 0 && FMT_MSC_VER < 1910) || FMT_ICC_VERSION != 0
|
||||||
// Workaround a bug in MSVC.
|
// Workaround a bug in MSVC and Intel (Issue 2746).
|
||||||
template <typename T> FMT_CONSTEXPR FMT_INLINE auto do_map(T&& val) -> T& {
|
template <typename T> FMT_CONSTEXPR FMT_INLINE auto do_map(T&& val) -> T& {
|
||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user