- 12 Mar, 2017 6 commits
-
-
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 4 commits
-
-
Niels Lohmann authored
-
Niels Lohmann authored
-
Niels Lohmann authored
-
Niels Lohmann authored
Also moved all exception classes into the detail namespace and introduced them via “using” into basic_json.
-
- 05 Mar, 2017 8 commits
-
-
Niels Lohmann authored
-
Niels Lohmann authored
-
Niels Lohmann authored
-
Niels Lohmann authored
-
Niels Lohmann authored
-
Niels Lohmann authored
-
Niels Lohmann authored
-
Niels Lohmann authored
-