Skip to content
This repository was archived by the owner on Aug 8, 2024. It is now read-only.
This repository was archived by the owner on Aug 8, 2024. It is now read-only.

Implement is_iterator, sfinae iterator_traits. #28

Description

@EricWF

My current method of checking if something is an iterator is to instantiate iterator_traits. Unfortunately iterator_traits does not support SFINAE, causing hard compile errors when instantiated with non-iterators.

I could just write my own iterator_traits, but I would lose all of the specializations of std::iterator_traits.

How can is_iterator be implemented?
(I think SFINAE iterator_traits are in C++14)

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions