Decouple appender from back_insert_iterator

This commit is contained in:
Victor Zverovich
2024-01-02 20:56:51 -08:00
parent 242bcaec04
commit c9d233c0a4
3 changed files with 40 additions and 30 deletions

View File

@@ -262,6 +262,14 @@ inline auto ctzll(uint64_t x) -> int {
FMT_END_NAMESPACE
#endif
namespace std {
template <>
struct iterator_traits<fmt::appender> {
using value_type = void;
using iterator_category = std::output_iterator_tag;
};
}
FMT_BEGIN_NAMESPACE
namespace detail {