Skip to content
Snippets Groups Projects
Unverified Commit 956d8df7 authored by Eric Niebler's avatar Eric Niebler Committed by GitHub
Browse files

Merge pull request #7 from DanielaE/fix/no-iterator-inheritance

Inheriting std::iterator is deprecated in c++17.
parents 0a39c2d7 b95a6f81
No related branches found
No related tags found
No related merge requests found
......@@ -127,8 +127,13 @@ enum transform_scope { scope_next = 0, scope_rest = 1 };
//
template<typename OutputIterator, typename Char>
struct case_converting_iterator
: std::iterator<std::output_iterator_tag, Char, void, void, case_converting_iterator<OutputIterator, Char> >
{
typedef std::output_iterator_tag iterator_category;
typedef Char value_type;
typedef void difference_type;
typedef void pointer;
typedef case_converting_iterator<OutputIterator, Char> reference;
case_converting_iterator(OutputIterator const &out, traits<Char> const *tr)
: out_(out)
, traits_(tr)
......@@ -206,8 +211,13 @@ inline bool set_transform(Iterator &, transform_op, transform_scope)
//
template<typename Char>
struct noop_output_iterator
: std::iterator<std::output_iterator_tag, Char, void, void, noop_output_iterator<Char> >
{
typedef std::output_iterator_tag iterator_category;
typedef Char value_type;
typedef void difference_type;
typedef void pointer;
typedef noop_output_iterator<Char> reference;
noop_output_iterator &operator ++()
{
return *this;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment