Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions include/fmt/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@
# define FMT_HAS_CPP_ATTRIBUTE(x) 0
#endif

#if FMT_HAS_INCLUDE(<ranges>)
# include <ranges>
#endif

#define FMT_HAS_CPP14_ATTRIBUTE(attribute) \
(FMT_CPLUSPLUS >= 201402L && FMT_HAS_CPP_ATTRIBUTE(attribute))

Expand Down Expand Up @@ -588,7 +592,12 @@ template <typename T> class basic_appender;
using appender = basic_appender<char>;

// Checks whether T is a container with contiguous storage.
#if defined(__cpp_lib_ranges)
template <typename T>
struct is_contiguous : std::bool_constant<std::ranges::contiguous_range<T>> {};
#else
template <typename T> struct is_contiguous : std::false_type {};
#endif

class context;
template <typename OutputIt, typename Char> class generic_context;
Expand Down
Loading