From: Jakob Wenzel Date: Thu, 25 Jul 2019 07:51:09 +0000 (+0200) Subject: replaced std::iterator with using statements X-Git-Tag: working-ls180~1181^2~2^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=70882a807074a521515d1525d83ed7321f982d7e;p=yosys.git replaced std::iterator with using statements --- diff --git a/kernel/rtlil.h b/kernel/rtlil.h index 10225cff2..712250b3e 100644 --- a/kernel/rtlil.h +++ b/kernel/rtlil.h @@ -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 - struct ObjIterator : public std::iterator - { + 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::iterator it; dict *list_p; int *refcount_p;