mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 02:37:36 +02:00
Relax string_view requirements
This commit is contained in:
@ -161,10 +161,7 @@
|
|||||||
(defined(_MSVC_LANG) && _MSVC_LANG > 201402L && _MSC_VER >= 1910)
|
(defined(_MSVC_LANG) && _MSVC_LANG > 201402L && _MSC_VER >= 1910)
|
||||||
# include <string_view>
|
# include <string_view>
|
||||||
# define FMT_USE_STD_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>) && \
|
#elif (FMT_HAS_INCLUDE(<experimental/string_view>) && \
|
||||||
(FMT_GCC_VERSION == 0 || FMT_GCC_VERSION >= 730) && \
|
|
||||||
__cplusplus >= 201402L)
|
__cplusplus >= 201402L)
|
||||||
# include <experimental/string_view>
|
# include <experimental/string_view>
|
||||||
# define FMT_USE_EXPERIMENTAL_STRING_VIEW
|
# define FMT_USE_EXPERIMENTAL_STRING_VIEW
|
||||||
|
Reference in New Issue
Block a user