aboutsummaryrefslogtreecommitdiff
path: root/include/fmt/ranges.h
diff options
context:
space:
mode:
authorVictor Zverovich <victor.zverovich@gmail.com>2019-06-04 18:50:30 -0700
committerVictor Zverovich <victor.zverovich@gmail.com>2019-06-04 18:50:30 -0700
commitc264e641eafcbec43b8bff4feea57428f1c38bb4 (patch)
tree1e2200d57067a111b1a7a3cfed6124f79674e757 /include/fmt/ranges.h
parent4aa0dc578b237ecc4b70ff7ae6170a3989c038cb (diff)
downloadfmtlib-c264e641eafcbec43b8bff4feea57428f1c38bb4.tar.gz
Add conditional_t for pre-C++14
Diffstat (limited to 'include/fmt/ranges.h')
-rw-r--r--include/fmt/ranges.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/fmt/ranges.h b/include/fmt/ranges.h
index a3a0c7a0..18124d3a 100644
--- a/include/fmt/ranges.h
+++ b/include/fmt/ranges.h
@@ -94,11 +94,11 @@ template <typename T, typename _ = void> struct is_range_ : std::false_type {};
#if !FMT_MSC_VER || FMT_MSC_VER > 1800
template <typename T>
-struct is_range_<T, typename std::conditional<
- false,
- conditional_helper<decltype(std::declval<T>().begin()),
- decltype(std::declval<T>().end())>,
- void>::type> : std::true_type {};
+struct is_range_<
+ T, conditional_t<false,
+ conditional_helper<decltype(std::declval<T>().begin()),
+ decltype(std::declval<T>().end())>,
+ void>> : std::true_type {};
#endif
/// tuple_size and tuple_element check.