GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix deprecated inheritance from std::iterator · andreasmolander/AliceO2@adaccc0

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • Algorithm/include/Algorithm
    • PageParser.h
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎Algorithm/include/Algorithm/PageParser.h‎

Copy file name to clipboardExpand all lines: Algorithm/include/Algorithm/PageParser.h
+6-7Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -197,17 +197,16 @@ class PageParser
197197
}
198198

199199
template <typename T>
200-
using IteratorBase = std::iterator<std::forward_iterator_tag, T>;
201-
202-
template <typename T>
203-
class Iterator : public IteratorBase<T>
200+
class Iterator
204201
{
205202
public:
206203
using ParentType = PageParser;
207204
using SelfType = Iterator;
208-
using value_type = typename IteratorBase<T>::value_type;
209-
using reference = typename IteratorBase<T>::reference;
210-
using pointer = typename IteratorBase<T>::pointer;
205+
using iterator_category = std::forward_iterator_tag;
206+
using value_type = T;
207+
using reference = T&;
208+
using pointer = T*;
209+
using difference_type = std::ptrdiff_t;
211210
using ElementType = typename std::remove_const<value_type>::type;
212211

213212
Iterator() = delete;

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.