From 5096c0fe97009d8c91d72c605791165e7b07a819 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 10 Feb 2018 07:17:29 -0800 Subject: [PATCH] Fix string_view detection --- include/fmt/core.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index ec41ac83..0944973e 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -151,7 +151,8 @@ namespace fmt { using std::basic_string_view; } // std::experimental::basic_string_view::remove_prefix isn't constexpr in gcc 6. #elif (FMT_HAS_INCLUDE() && \ - __cplusplus >= 201402L && FMT_GCC_VERSION >= 700) + (FMT_GCC_VERSION == 0 || FMT_GCC_VERSION >= 700) && \ + __cplusplus >= 201402L) # include namespace fmt { using std::experimental::basic_string_view; } #else