nvs_flash: update intrusive_list for compatibility with C++17

std::iterator is deprecated since C++17, the code produces a warning
when compiled with clang and libc++.
This commit is contained in:
Ivan Grokhotkov 2022-08-15 23:12:20 +02:00
parent 4d14c2ef2d
commit 08e41973f0
No known key found for this signature in database
GPG Key ID: 1E050E141B280628

View File

@ -30,9 +30,14 @@ class intrusive_list
public:
class iterator : public std::iterator<std::forward_iterator_tag, T>
class iterator
{
public:
using iterator_category = std::forward_iterator_tag;
using value_type = T;
using difference_type = ptrdiff_t;
using pointer = T*;
using reference = T&;
iterator() : mPos(nullptr) {}