replaced std::iterator with using statements
authorJakob Wenzel <wenzel@rs.tu-darmstadt.de>
Thu, 25 Jul 2019 07:51:09 +0000 (09:51 +0200)
committerJakob Wenzel <wenzel@rs.tu-darmstadt.de>
Thu, 25 Jul 2019 07:51:09 +0000 (09:51 +0200)
kernel/rtlil.h

index 10225cff249baa3476147d78f9dc0977000f75dc..712250b3e7f6ba0630bbece46cc1ce625c2fcfb0 100644 (file)
@@ -420,12 +420,12 @@ namespace RTLIL
        // It maintains a reference counter that is used to make sure that the container is not modified while being iterated over.
 
        template<typename T>
-       struct ObjIterator : public std::iterator<std::forward_iterator_tag,
-               T,
-               ptrdiff_t,
-               T *,
-               T &>
-       {
+       struct ObjIterator {
+               using iterator_category = std::forward_iterator_tag;
+               using value_type = T;
+               using difference_type = ptrdiff_t;
+               using pointer = T*;
+               using reference = T&;
                typename dict<RTLIL::IdString, T>::iterator it;
                dict<RTLIL::IdString, T> *list_p;
                int *refcount_p;