Make ranges only depend on fmt/base.h

This commit is contained in:
Victor Zverovich
2024-01-13 09:54:19 -08:00
parent da0f84c42c
commit d0963d4823
5 changed files with 19 additions and 19 deletions
+11
View File
@@ -585,6 +585,17 @@ struct has_to_string_view<
T, void_t<decltype(detail::to_string_view(std::declval<T>()))>>
: std::true_type {};
template <typename CharT, CharT... C> struct string_literal {
static constexpr CharT value[sizeof...(C)] = {C...};
constexpr operator basic_string_view<CharT>() const {
return {value, sizeof...(C)};
}
};
#if FMT_CPLUSPLUS < 201703L
template <typename CharT, CharT... C>
constexpr CharT string_literal<CharT, C...>::value[sizeof...(C)];
#endif
enum class type {
none_type,
// Integer types should go first,