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
-12
View File
@@ -292,18 +292,6 @@ template <typename Char> using std_string_view = std::basic_string_view<Char>;
template <typename T> struct std_string_view {};
#endif
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
// Implementation of std::bit_cast for pre-C++20.
template <typename To, typename From, FMT_ENABLE_IF(sizeof(To) == sizeof(From))>
FMT_CONSTEXPR20 auto bit_cast(const From& from) -> To {