mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-26 00:21:13 +00:00
Fix string_view detection
This commit is contained in:
parent
6957d28cfb
commit
4fea018b2d
@ -155,9 +155,10 @@
|
|||||||
Type(const Type &) FMT_DELETED; \
|
Type(const Type &) FMT_DELETED; \
|
||||||
void operator=(const Type &) FMT_DELETED
|
void operator=(const Type &) FMT_DELETED
|
||||||
|
|
||||||
#if (FMT_HAS_INCLUDE(<string_view>) && __cplusplus > 201402L) || \
|
// libc++ supports string_view in pre-c++17.
|
||||||
(defined(_MSVC_LANG) && _MSVC_LANG > 201402L && _MSC_VER >= 1910) || \
|
#if (FMT_HAS_INCLUDE(<string_view>) && \
|
||||||
_LIBCPP_VERSION // libc++ supports string_view in pre-c++17
|
(__cplusplus > 201402L || _LIBCPP_VERSION)) || \
|
||||||
|
(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
|
// std::experimental::basic_string_view::remove_prefix isn't constexpr until
|
||||||
|
Loading…
Reference in New Issue
Block a user