diff C++/Json.cpp @ 320:b67b2da45bb0

Json: * Remove uniform initialization * Add JsonObject::erase, JsonObject::clear * Add JsonArray::erase, JsonArray::clear * Fix operator== in iterators * Add JsonValue::JsonValue(std::nullptr_t)
author David Demelier <markand@malikania.fr>
date Thu, 26 Feb 2015 14:21:29 +0100
parents 4c3019385769
children
line wrap: on
line diff
--- a/C++/Json.cpp	Wed Feb 25 13:53:41 2015 +0100
+++ b/C++/Json.cpp	Thu Feb 26 14:21:29 2015 +0100
@@ -47,7 +47,7 @@
 	auto value = json_array_get(m_handle.get(), index);
 
 	if (value == nullptr)
-		throw JsonError{"index out of bounds"};
+		throw JsonError("index out of bounds");
 
 	json_incref(value);