mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
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:
parent
4d14c2ef2d
commit
08e41973f0
@ -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) {}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user