bi_iterator -> base

This commit is contained in:
Victor Zverovich 2022-05-29 20:31:15 -07:00
parent 11316b29af
commit d9c7166cf0

View File

@ -682,10 +682,10 @@ constexpr auto has_const_formatter() -> bool {
template <typename Container>
inline auto get_container(std::back_insert_iterator<Container> it)
-> Container& {
using bi_iterator = std::back_insert_iterator<Container>;
struct accessor : bi_iterator {
accessor(bi_iterator iter) : bi_iterator(iter) {}
using bi_iterator::container;
using base = std::back_insert_iterator<Container>;
struct accessor : base {
accessor(base b) : base(b) {}
using base::container;
};
return *accessor(it).container;
}