From fb17e2522ec34e87f1fc403590b02f9968d193d0 Mon Sep 17 00:00:00 2001 From: BlackMATov Date: Fri, 12 Jul 2019 21:00:23 +0700 Subject: [PATCH] fix deprecated std::iterator warnings --- headers/enduro2d/utils/intrusive_list.hpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/headers/enduro2d/utils/intrusive_list.hpp b/headers/enduro2d/utils/intrusive_list.hpp index 67bb9170..8580552e 100644 --- a/headers/enduro2d/utils/intrusive_list.hpp +++ b/headers/enduro2d/utils/intrusive_list.hpp @@ -118,14 +118,13 @@ namespace e2d namespace e2d { template < typename Tag, typename T, typename TP, typename TR > - class intrusive_list_iterator final - : public std::iterator< - std::bidirectional_iterator_tag, - T, - ptrdiff_t, - TP, - TR> - { + class intrusive_list_iterator final { + public: + using iterator_category = std::bidirectional_iterator_tag; + using value_type = T; + using difference_type = ptrdiff_t; + using pointer = TP; + using reference = TR&; public: using self_type = intrusive_list_iterator;