@@ -49,7 +49,7 @@ SOFTWARE.
4949
5050#pragma once
5151
52- #include < json2cpp/constexpr_json .hpp>
52+ #include < json2cpp/json2cpp .hpp>
5353#include < string>
5454
5555#include < utility>
@@ -96,7 +96,7 @@ namespace adapters {
9696 * Note that this constructor will throw an exception if the value is not
9797 * an array.
9898 */
99- explicit json2cppJsonArray (const constexpr_json ::json &value) : m_value(value)
99+ explicit json2cppJsonArray (const json2cpp ::json &value) : m_value(value)
100100 {
101101 if (!value.is_array ()) { throwRuntimeError (" Value is not an array." ); }
102102 }
@@ -126,14 +126,14 @@ namespace adapters {
126126 *
127127 * Note that the value returned by this function is a singleton.
128128 */
129- static const constexpr_json ::json &emptyArray ()
129+ static const json2cpp ::json &emptyArray ()
130130 {
131- static const constexpr_json ::json array = constexpr_json ::json::array ();
131+ static const json2cpp ::json array = json2cpp ::json::array ();
132132 return array;
133133 }
134134
135135 // / Reference to the contained value
136- const constexpr_json ::json &m_value;
136+ const json2cpp ::json &m_value;
137137 };
138138
139139 /* *
@@ -165,7 +165,7 @@ namespace adapters {
165165 * Note that this constructor will throw an exception if the value is not
166166 * an object.
167167 */
168- explicit json2cppJsonObject (const constexpr_json ::json &value) : m_value(value)
168+ explicit json2cppJsonObject (const json2cpp ::json &value) : m_value(value)
169169 {
170170 if (!value.is_object ()) { throwRuntimeError (" Value is not an object." ); }
171171 }
@@ -207,14 +207,14 @@ namespace adapters {
207207 *
208208 * Note that the value returned by this function is a singleton.
209209 */
210- static const constexpr_json ::json &emptyObject ()
210+ static const json2cpp ::json &emptyObject ()
211211 {
212- static const constexpr_json ::json object = constexpr_json ::json::object ();
212+ static const json2cpp ::json object = json2cpp ::json::object ();
213213 return object;
214214 }
215215
216216 // / Reference to the contained object
217- const constexpr_json ::json &m_value;
217+ const json2cpp ::json &m_value;
218218 };
219219
220220
@@ -235,15 +235,15 @@ namespace adapters {
235235 *
236236 * @param source the json2cppJson value to be copied
237237 */
238- explicit json2cppJsonFrozenValue (constexpr_json ::json source) : m_value(std::move(source)) {}
238+ explicit json2cppJsonFrozenValue (json2cpp ::json source) : m_value(std::move(source)) {}
239239
240240 FrozenValue *clone () const override { return new json2cppJsonFrozenValue (m_value); }
241241
242242 bool equalTo (const Adapter &other, bool strict) const override ;
243243
244244 private:
245245 // / Stored json2cppJson value
246- constexpr_json ::json m_value;
246+ json2cpp ::json m_value;
247247 };
248248
249249
@@ -268,7 +268,7 @@ namespace adapters {
268268 json2cppJsonValue () : m_value(emptyObject()) {}
269269
270270 // / Construct a wrapper for a specific json2cppJson value
271- explicit json2cppJsonValue (const constexpr_json ::json &value) : m_value(value) {}
271+ explicit json2cppJsonValue (const json2cpp ::json &value) : m_value(value) {}
272272
273273 /* *
274274 * @brief Create a new json2cppJsonFrozenValue instance that contains the
@@ -413,14 +413,14 @@ namespace adapters {
413413
414414 private:
415415 // / Return a reference to an empty object singleton
416- static const constexpr_json ::json &emptyObject ()
416+ static const json2cpp ::json &emptyObject ()
417417 {
418- static const constexpr_json ::json object = constexpr_json ::json::object ();
418+ static const json2cpp ::json object = json2cpp ::json::object ();
419419 return object;
420420 }
421421
422422 // / Reference to the contained json2cppJson value.
423- const constexpr_json ::json &m_value;
423+ const json2cpp ::json &m_value;
424424 };
425425
426426 /* *
@@ -444,7 +444,7 @@ namespace adapters {
444444 json2cppJsonAdapter () : BasicAdapter() {}
445445
446446 // / Construct a json2cppJsonAdapter containing a specific json2cpp Json object
447- explicit json2cppJsonAdapter (const constexpr_json ::json &value) : BasicAdapter(json2cppJsonValue{ value }) {}
447+ explicit json2cppJsonAdapter (const json2cpp ::json &value) : BasicAdapter(json2cppJsonValue{ value }) {}
448448 };
449449
450450 /* *
@@ -471,7 +471,7 @@ namespace adapters {
471471 *
472472 * @param itr json2cppJson iterator to store
473473 */
474- explicit json2cppJsonArrayValueIterator (const constexpr_json ::json::const_iterator &itr) : m_itr(itr) {}
474+ explicit json2cppJsonArrayValueIterator (const json2cpp ::json::const_iterator &itr) : m_itr(itr) {}
475475
476476 // / Returns a json2cppJsonAdapter that contains the value of the current
477477 // / element.
@@ -522,7 +522,7 @@ namespace adapters {
522522 void advance (std::ptrdiff_t n) { m_itr += n; }
523523
524524 private:
525- constexpr_json ::json::const_iterator m_itr;
525+ json2cpp ::json::const_iterator m_itr;
526526 };
527527
528528
@@ -550,7 +550,7 @@ namespace adapters {
550550 *
551551 * @param itr json2cppJson iterator to store
552552 */
553- explicit json2cppJsonObjectMemberIterator (const constexpr_json ::json::const_iterator &itr) : m_itr(itr) {}
553+ explicit json2cppJsonObjectMemberIterator (const json2cpp ::json::const_iterator &itr) : m_itr(itr) {}
554554
555555 /* *
556556 * @brief Returns a json2cppJsonObjectMember that contains the key and value
@@ -601,13 +601,13 @@ namespace adapters {
601601
602602 private:
603603 // / Iternal copy of the original json2cppJson iterator
604- constexpr_json ::json::const_iterator m_itr;
604+ json2cpp ::json::const_iterator m_itr;
605605 };
606606
607607 // / Specialisation of the AdapterTraits template struct for json2cppJsonAdapter.
608608 template <> struct AdapterTraits <valijson::adapters::json2cppJsonAdapter>
609609 {
610- typedef constexpr_json ::json DocumentType;
610+ typedef json2cpp ::json DocumentType;
611611
612612 static std::string adapterName () { return " json2cppJsonAdapter" ; }
613613 };
0 commit comments