Explorar o código

Missed removing braces on one of the exceptions

Sam Jaffe %!s(int64=8) %!d(string=hai) anos
pai
achega
a4c6ae5b2d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      json_common.cpp

+ 1 - 1
json_common.cpp

@@ -78,7 +78,7 @@ namespace json {
       }
       
       if ( is_negative && base != decimal ) {
-        throw json_numeric_exception{"Only decimal numbers can be recorded as negative"};
+        throw json_numeric_exception("Only decimal numbers can be recorded as negative");
       }
       if (end == it) {
         throw unterminated_json_exception("Expected any token, got nothing");