diff --git a/src/include/Jerryscript/Types.h b/src/include/Jerryscript/Types.h index dbd7afb..bff4e82 100644 --- a/src/include/Jerryscript/Types.h +++ b/src/include/Jerryscript/Types.h @@ -850,9 +850,15 @@ class Array : public Object unsigned mIndex; }; - class Iterator : public std::iterator + class Iterator { public: + using iterator_category = std::random_access_iterator_tag; + using value_type = IndexedItem; + using difference_type = std::ptrdiff_t; + using pointer = IndexedItem*; + using reference = IndexedItem&; + Iterator(const Iterator&) = default; Iterator(Array& array, unsigned index) : item(array, index)