Skip to content

std::iterator is deprecated #25

@adamnovak

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.

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