Removed use of std::iterator, which is deprecated in C++17.

PiperOrigin-RevId: 489038355
pull/13171/head
Joshua Haberman 2 years ago committed by Copybara-Service
parent 7d76251d9f
commit 7c20721f3e
  1. 6
      upb/hash/test.cc

@ -108,8 +108,7 @@ class IntTable {
void Compact() { upb_inttable_compact(&table_, arena_.ptr()); }
class iterator : public std::iterator<std::forward_iterator_tag,
std::pair<uintptr_t, upb_value> > {
class iterator {
public:
explicit iterator(IntTable* table) {
upb_inttable_begin(&iter_, &table->table_);
@ -173,8 +172,7 @@ class StrTable {
upb_strtable_resize(&table_, size_lg2, arena_.ptr());
}
class iterator : public std::iterator<std::forward_iterator_tag,
std::pair<std::string, upb_value> > {
class iterator {
public:
explicit iterator(StrTable* table) {
upb_strtable_begin(&iter_, &table->table_);

Loading…
Cancel
Save