mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-19 20:18:49 +00:00
Relax string_view requirements
This commit is contained in:
parent
0829cab8f2
commit
44cc034651
@ -161,10 +161,7 @@
|
||||
(defined(_MSVC_LANG) && _MSVC_LANG > 201402L && _MSC_VER >= 1910)
|
||||
# include <string_view>
|
||||
# define FMT_USE_STD_STRING_VIEW
|
||||
// std::experimental::basic_string_view::remove_prefix isn't constexpr until
|
||||
// gcc 7.3.
|
||||
#elif (FMT_HAS_INCLUDE(<experimental/string_view>) && \
|
||||
(FMT_GCC_VERSION == 0 || FMT_GCC_VERSION >= 730) && \
|
||||
__cplusplus >= 201402L)
|
||||
# include <experimental/string_view>
|
||||
# define FMT_USE_EXPERIMENTAL_STRING_VIEW
|
||||
|
Loading…
Reference in New Issue
Block a user