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> template <typename Container>
inline auto get_container(std::back_insert_iterator<Container> it) inline auto get_container(std::back_insert_iterator<Container> it)
-> Container& { -> Container& {
using bi_iterator = std::back_insert_iterator<Container>; using base = std::back_insert_iterator<Container>;
struct accessor : bi_iterator { struct accessor : base {
accessor(bi_iterator iter) : bi_iterator(iter) {} accessor(base b) : base(b) {}
using bi_iterator::container; using base::container;
}; };
return *accessor(it).container; return *accessor(it).container;
} }