Skip to content

std::iterator is deprecated #25

Description

@adamnovak

In C++17, inheriting from std::iterator is deprecated, on the theory that code is actually better if it just explicitly defines all the typedefs that std::iterator would get you by inheritance.

But it is still used e.g. here:

class bfile_iterator : public std::iterator<std::forward_iterator_tag, basetype>{

This leads to compiler warnings when compiling under C++17 or later.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions