Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lihuiba committed Apr 22, 2024
1 parent 5f5b4b3 commit 7bfc9d5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions common/string-keyed.h
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ class basic_map_string_kv : public M

iterator(base_it b_it) : _b_it(b_it) { }
iterator(typename base::const_iterator b_it) {
auto x = (B_IT*) &b_it;
auto x = (base_it*) &b_it;
_b_it = *x;
}

Expand Down Expand Up @@ -325,7 +325,6 @@ class basic_map_string_kv : public M
{
return base::begin();
}
using B_IT = typename base::iterator;
const_iterator end() const
{
return {base::end()};
Expand Down Expand Up @@ -437,10 +436,9 @@ class map_string_kv : public basic_map_string_kv<std::map<skvm, size_t>> {
{
return base::upper_bound((const skvm&)k);
}
using typename base::B_IT;
const_iterator lower_bound (const key_type& k) const
{
return {base::lower_bound((const skvm&)k)}
return {base::lower_bound((const skvm&)k)};
}
const_iterator upper_bound (const key_type& k) const
{
Expand Down

0 comments on commit 7bfc9d5

Please sign in to comment.