diff options
author | Victor Zverovich <victor.zverovich@gmail.com> | 2019-05-12 13:03:20 -0700 |
---|---|---|
committer | Victor Zverovich <victor.zverovich@gmail.com> | 2019-05-12 13:03:20 -0700 |
commit | 2c77562b139c9357e71bc2f8b895f26f5b4cca37 (patch) | |
tree | 41db2c6868f9d0e1520ebc3f5543c5423d9c8a8f /include/fmt/ranges.h | |
parent | 98b3775297afc10ea054ac3514d6977b263275d3 (diff) | |
download | fmtlib-2c77562b139c9357e71bc2f8b895f26f5b4cca37.tar.gz |
Fix ambiguous formatter specialization in fmt/ranges.h (#1123)
Diffstat (limited to 'include/fmt/ranges.h')
-rw-r--r-- | include/fmt/ranges.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/fmt/ranges.h b/include/fmt/ranges.h index 646d63f9..06fcaad5 100644 --- a/include/fmt/ranges.h +++ b/include/fmt/ranges.h @@ -82,7 +82,7 @@ template <typename T> class is_like_std_string { public: static FMT_CONSTEXPR_DECL const bool value = - !std::is_void<decltype(check<T>(FMT_NULL))>::value; + is_string<T>::value || !std::is_void<decltype(check<T>(FMT_NULL))>::value; }; template <typename Char> |