0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 10:12:39 +01:00

ircd::json: Add default ctor for array/object/vector const_iterators.

This commit is contained in:
Jason Volk 2018-02-28 22:32:00 -08:00
parent f7a4f5c939
commit 2fcaf8c758
3 changed files with 12 additions and 6 deletions

View file

@ -84,8 +84,8 @@ struct ircd::json::array::const_iterator
protected:
friend class array;
const char *start;
const char *stop;
const char *start {nullptr};
const char *stop {nullptr};
string_view state;
const_iterator(const char *const &start, const char *const &stop)
@ -99,6 +99,8 @@ struct ircd::json::array::const_iterator
const_iterator &operator++();
const_iterator() = default;
friend bool operator==(const const_iterator &, const const_iterator &);
friend bool operator!=(const const_iterator &, const const_iterator &);
friend bool operator<=(const const_iterator &, const const_iterator &);

View file

@ -149,8 +149,8 @@ struct ircd::json::object::const_iterator
protected:
friend class object;
const char *start;
const char *stop;
const char *start {nullptr};
const char *stop {nullptr};
member state;
const_iterator(const char *const &start, const char *const &stop)
@ -164,6 +164,8 @@ struct ircd::json::object::const_iterator
const_iterator &operator++();
const_iterator() = default;
friend bool operator==(const const_iterator &, const const_iterator &);
friend bool operator!=(const const_iterator &, const const_iterator &);
friend bool operator<=(const const_iterator &, const const_iterator &);

View file

@ -65,8 +65,8 @@ struct ircd::json::vector::const_iterator
protected:
friend class vector;
const char *start;
const char *stop;
const char *start {nullptr};
const char *stop {nullptr};
object state;
const_iterator(const char *const &start, const char *const &stop)
@ -80,6 +80,8 @@ struct ircd::json::vector::const_iterator
const_iterator &operator++();
const_iterator() = default;
friend bool operator==(const const_iterator &, const const_iterator &);
friend bool operator!=(const const_iterator &, const const_iterator &);
friend bool operator<=(const const_iterator &, const const_iterator &);