diff options
Diffstat (limited to 'js/src')
-rw-r--r-- | js/src/jsapi.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/js/src/jsapi.h b/js/src/jsapi.h index 951b612502..19a0b805d2 100644 --- a/js/src/jsapi.h +++ b/js/src/jsapi.h @@ -5570,10 +5570,17 @@ class JS_PUBLIC_API(JSErrorNotes) // Create a deep copy of notes. js::UniquePtr<JSErrorNotes> copy(JSContext* cx); - class iterator : public std::iterator<std::input_iterator_tag, js::UniquePtr<Note>> - { + class iterator + {
+ private: js::UniquePtr<Note>* note_; - public: + public:
+ using iterator_category = std::input_iterator_tag;
+ using value_type = js::UniquePtr<Note>;
+ using difference_type = ptrdiff_t;
+ using pointer = value_type*;
+ using reference = value_type&;
+ explicit iterator(js::UniquePtr<Note>* note = nullptr) : note_(note) {} |