mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-25 15:21:54 +00:00
Fix string_view detection
This commit is contained in:
parent
5b3f9eab94
commit
5096c0fe97
@ -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(<experimental/string_view>) && \
|
||||
__cplusplus >= 201402L && FMT_GCC_VERSION >= 700)
|
||||
(FMT_GCC_VERSION == 0 || FMT_GCC_VERSION >= 700) && \
|
||||
__cplusplus >= 201402L)
|
||||
# include <experimental/string_view>
|
||||
namespace fmt { using std::experimental::basic_string_view; }
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user