mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-26 00:21:13 +00:00
bi_iterator -> base
This commit is contained in:
parent
11316b29af
commit
d9c7166cf0
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user