diff --git a/upb/hash/test.cc b/upb/hash/test.cc index d7b9524b46..5451f2bb4b 100644 --- a/upb/hash/test.cc +++ b/upb/hash/test.cc @@ -239,8 +239,7 @@ class TypedStrTable { void Resize(size_t size_lg2) { table_.Resize(size_lg2); } - class iterator : public std::iterator > { + class iterator { public: explicit iterator(TypedStrTable* table) : iter_(&table->table_) {} static iterator end(TypedStrTable* table) { @@ -312,8 +311,7 @@ class TypedIntTable { void Compact() { table_.Compact(); } - class iterator : public std::iterator > { + class iterator { public: explicit iterator(TypedIntTable* table) : iter_(&table->table_) {} static iterator end(TypedIntTable* table) {