Commit 66afd9b3 authored by Victor Zverovich's avatar Victor Zverovich

Fix compilation on gcc 6

parent 67e070fe
...@@ -147,7 +147,9 @@ ...@@ -147,7 +147,9 @@
(defined(_MSVC_LANG) && _MSVC_LANG > 201402L && _MSC_VER >= 1910) (defined(_MSVC_LANG) && _MSVC_LANG > 201402L && _MSC_VER >= 1910)
# include <string_view> # include <string_view>
namespace fmt { using std::basic_string_view; } namespace fmt { using std::basic_string_view; }
#elif (FMT_HAS_INCLUDE(<experimental/string_view>) && __cplusplus >= 201402L) // std::experimental::basic_string_view::remove_prefix isn't constexpr in gcc 6.
#elif (FMT_HAS_INCLUDE(<experimental/string_view>) && \
__cplusplus >= 201402L && FMT_GCC_VERSION >= 700)
# include <experimental/string_view> # include <experimental/string_view>
namespace fmt { using std::experimental::basic_string_view; } namespace fmt { using std::experimental::basic_string_view; }
#else #else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment