Skip to content

Commit

Permalink
Fix deprecated inheritance of std::iterator (#28212)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisse74 committed Apr 22, 2022
1 parent 6f3d7cc commit 5968cb6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions include/grpcpp/impl/codegen/security/auth_context.h
Expand Up @@ -36,9 +36,14 @@ class SecureAuthContext;

typedef std::pair<string_ref, string_ref> AuthProperty;

class AuthPropertyIterator
: public std::iterator<std::input_iterator_tag, const AuthProperty> {
class AuthPropertyIterator {
public:
using iterator_category = std::forward_iterator_tag;
using value_type = const AuthProperty;
using pointer = void;
using reference = void;
using difference_type = std::ptrdiff_t;

~AuthPropertyIterator();
AuthPropertyIterator& operator++();
AuthPropertyIterator operator++(int);
Expand Down

0 comments on commit 5968cb6

Please sign in to comment.