- 14 Mar, 2017 2 commits
-
-
Niels Lohmann authored
Removed a check that already failed in MSVC.
-
Niels Lohmann authored
-
- 13 Mar, 2017 1 commit
-
-
Niels Lohmann authored
-
- 12 Mar, 2017 13 commits
-
-
Niels Lohmann authored
-
Niels Lohmann authored
-
Niels Lohmann authored
-
Niels Lohmann authored
- 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 authored
Removed some code that is not needed any more. Thus, streamlining the array from_json methods.
-
Niels Lohmann authored
These tests currently pass without any adjustments to the source code.
-
Niels Lohmann authored
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 authored
Added all possible exceptions to the examples of the at functions.
-
Niels Lohmann authored
-
Niels Lohmann authored
-
Niels Lohmann authored
-
Niels Lohmann authored
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 authored
Implemented std::less<value_t> to allow using value_t as std::map key in MSVC.
-
- 11 Mar, 2017 13 commits
-
-
Niels Lohmann authored
-
Niels Lohmann authored
-
Niels Lohmann authored
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 authored
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 authored
-
Niels Lohmann authored
Ran “make pretty” and added a note to the README file.
-
Niels Lohmann authored
Fix -Weffc++ warnings (GNU 6.3.1)
-
Niels Lohmann authored
-
Niels Lohmann authored
MSVC needs this overload to compile code containing a std::map that uses nlohmann::detail::operator as key.
-
Niels Lohmann authored
Adds a to_json function for std::vector<bool> to allow implicit conversion from bit vectors to basic_json.
-
Ted Lyngmo authored
-
Ted Lyngmo authored
-
Ted Lyngmo authored
-
- 09 Mar, 2017 1 commit
-
-
Niels Lohmann authored
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.
-
- 08 Mar, 2017 7 commits
-
-
Niels Lohmann authored
-
Niels Lohmann authored
-
Niels Lohmann authored
Replacing references to std exceptions with user-defined exceptions. Also changed some examples to the new exceptions.
-
Niels Lohmann authored
-
Niels Lohmann authored
-
Niels Lohmann authored
-
Niels Lohmann authored
Tests for parse_error.109 were missing.
-
- 07 Mar, 2017 1 commit
-
-
Niels Lohmann authored
-
- 06 Mar, 2017 2 commits
-
-
Niels Lohmann authored
-
Niels Lohmann authored
-