|
|
@@ -130,9 +130,9 @@ namespace json { namespace helper {
|
|
|
errno = 0;
|
|
|
T tmp = parse_double_impl<T>(begin, data);
|
|
|
if (errno != 0) {
|
|
|
- throw json::json_numeric_width_exception{"Number is out-of-range for floating-point type"};
|
|
|
+ throw json::json_numeric_width_exception("Number is out-of-range for floating-point type");
|
|
|
} else if ( begin == data ) {
|
|
|
- throw json::json_numeric_exception{"Expected numeric data"};
|
|
|
+ throw json::json_numeric_exception("Expected numeric data");
|
|
|
}
|
|
|
errno = 0;
|
|
|
json = std::move(tmp);
|
|
|
@@ -143,13 +143,13 @@ namespace json { namespace helper {
|
|
|
json::helper::get_next_element(data);
|
|
|
numeric_token_info info = data;
|
|
|
if ( info.is_negative && !std::is_signed<J>::value ) {
|
|
|
- throw json_numeric_exception{"Expected signed integer"};
|
|
|
+ throw json_numeric_exception("Expected signed integer");
|
|
|
} else if ( info.is_double || info.parse_numeric() == DOUBLE ) {
|
|
|
- throw json_numeric_exception{"Expected integer, got double"};
|
|
|
+ throw json_numeric_exception("Expected integer, got double");
|
|
|
} else if (info.base == numeric_token_info::decimal &&
|
|
|
(fls(static_cast<int_jt>(info.val)) > std::numeric_limits<J>::digits + info.is_negative
|
|
|
|| info.val > json::numeric_limits<J>::over)) {
|
|
|
- throw json_numeric_width_exception{"Integer width too small for parsed value"};
|
|
|
+ throw json_numeric_width_exception("Integer width too small for parsed value");
|
|
|
} else if (info.is_negative) {
|
|
|
if (info.val == json::numeric_limits<J>::over) {
|
|
|
json = json::numeric_limits<J>::min;
|
|
|
@@ -160,7 +160,7 @@ namespace json { namespace helper {
|
|
|
json = static_cast<J>(int_jt(info.val));
|
|
|
} else if (std::is_signed<J>::value &&
|
|
|
info.base == numeric_token_info::decimal) {
|
|
|
- throw json_numeric_exception{"Expected unsigned integer"};
|
|
|
+ throw json_numeric_exception("Expected unsigned integer");
|
|
|
} else {
|
|
|
json = static_cast<J>(info.val);
|
|
|
}
|