File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 8787# define FMT_HAS_CPP_ATTRIBUTE (x ) 0
8888#endif
8989
90+ #if FMT_HAS_INCLUDE(<ranges>)
91+ # include < ranges>
92+ #endif
93+
9094#define FMT_HAS_CPP14_ATTRIBUTE (attribute ) \
9195 (FMT_CPLUSPLUS >= 201402L && FMT_HAS_CPP_ATTRIBUTE(attribute))
9296
@@ -588,7 +592,12 @@ template <typename T> class basic_appender;
588592using appender = basic_appender<char >;
589593
590594// Checks whether T is a container with contiguous storage.
595+ #if defined(__cpp_lib_ranges)
596+ template <typename T>
597+ struct is_contiguous : std::bool_constant<std::ranges::contiguous_range<T>> {};
598+ #else
591599template <typename T> struct is_contiguous : std::false_type {};
600+ #endif
592601
593602class context ;
594603template <typename OutputIt, typename Char> class generic_context ;
You can’t perform that action at this time.
0 commit comments