- 16 3月, 2017 1 次提交
-
-
由 Théo DELRIEU 提交于
If the array can be converted to basic_json::string_t, the overload in this commit is not chosen.
-
- 15 3月, 2017 6 次提交
-
-
由 Niels Lohmann 提交于
-
由 Niels Lohmann 提交于
-
由 Niels Lohmann 提交于
Replaced old std::invalid_argument exception by parse_error.111 to have unified exceptions in case of input stream errors.
-
由 Niels Lohmann 提交于
Also merged develop into this feature branch.
-
由 Niels Lohmann 提交于
When <Windows.h> is included with MSVC, a macro NOMINMAX is defined that yields compilation errors when max/min calls are encountered. This can be fixed by un-defining NOMINMAX, or by placing parentheses around all min/max calls. We chose the latter.
-
由 Niels Lohmann 提交于
Since #329, NaN and inf numbers do not yield an exception, but are stored internally and are dumped as “null”. This commit adjusts the fuzz testers to deal with this special case.
-
- 14 3月, 2017 3 次提交
-
-
由 Niels Lohmann 提交于
Removed a check that already failed in MSVC.
-
由 Niels Lohmann 提交于
-
由 Niels Lohmann 提交于
-
- 13 3月, 2017 5 次提交
-
-
由 Niels Lohmann 提交于
-
由 Niels Lohmann 提交于
-
由 Niels Lohmann 提交于
-
由 Niels Lohmann 提交于
- If an overflow occurs during parsing a number from a JSON text, an exception (std::out_of_range for the moment, to be replaced by a user-defined exception #244) is thrown so that the overflow is detected early and roundtripping is guaranteed. - NaN and INF floating-point values can be stored in a JSON value and are not replaced by null. That is, the basic_json class behaves like double in this regard (no exception occurs). However, NaN and INF are serialized to “null”. - Adjusted test cases appropriately.
-
由 Niels Lohmann 提交于
Removed some code that is not needed any more. Thus, streamlining the array from_json methods.
-
- 12 3月, 2017 14 次提交
-
-
由 Niels Lohmann 提交于
These tests currently pass without any adjustments to the source code.
-
由 Niels Lohmann 提交于
To avoid the error described in #497, I added a function msgpack_expect_string that is executed every time a string is expected during the parsing of a map. In case the current byte does not belong to a MsgPack string, an exception is thrown.
-
由 Niels Lohmann 提交于
Added all possible exceptions to the examples of the at functions.
-
由 Niels Lohmann 提交于
-
由 Niels Lohmann 提交于
-
由 Niels Lohmann 提交于
-
由 Niels Lohmann 提交于
This test case relied on logics that have been replaced by CMake with #461. This change enables compilation and execution of the test suite without exceptions by adding an after_success task.
-
由 Niels Lohmann 提交于
Implemented std::less<value_t> to allow using value_t as std::map key in MSVC.
-
由 Niels Lohmann 提交于
-
由 Niels Lohmann 提交于
Added a test to check if the input stream is good() before executing getline on it. Also added two test cases that set the failbit and badbit before calling file_line_buffer.
-
由 Niels Lohmann 提交于
-
由 Niels Lohmann 提交于
MSVC does not define __cpp_exceptions, but seems to use _CPPUNWIND when exception support is switched on, see https://msdn.microsoft.com/en-us/library/b0084kay.aspx.
-
由 Niels Lohmann 提交于
I used __EXCEPTIONS to detect whether exceptions are supported. Apparently, this is a macro that is only used by libstdc++ (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64276). It’s much cleaner to use __cpp_exceptions as it is in the standard since C++98. Note that compiling the unit-tests with “-fno-exceptions” still does not work, because Catch uses throw internally. However, the library’s exceptions can be switched off by defining JSON_NOEXCEPTION.
-
由 Niels Lohmann 提交于
-
- 11 3月, 2017 8 次提交
-
-
由 Niels Lohmann 提交于
Ran “make pretty” and added a note to the README file.
-
由 Niels Lohmann 提交于
Fix -Weffc++ warnings (GNU 6.3.1)
-
由 Niels Lohmann 提交于
-
由 Niels Lohmann 提交于
MSVC needs this overload to compile code containing a std::map that uses nlohmann::detail::operator as key.
-
由 Niels Lohmann 提交于
Adds a to_json function for std::vector<bool> to allow implicit conversion from bit vectors to basic_json.
-
由 Ted Lyngmo 提交于
-
由 Ted Lyngmo 提交于
-
由 Ted Lyngmo 提交于
-
- 10 3月, 2017 1 次提交
-
-
由 Niels Lohmann 提交于
The original test case relied on an invalidated iterator. This error did not occur before, but only with GCC with -D_GLIBCXX_DEBUG. This commit fixes the test case. The library is unaffected by this change.
-
- 09 3月, 2017 2 次提交
-
-
由 Niels Lohmann 提交于
-
由 Niels Lohmann 提交于
-