mirror of
https://github.com/nlohmann/json.git
synced 2026-10-17 19:48:12 +00:00
moved class into "nlohmann" namespace
- fixed issue #9 - also removed std::mutex member variable - also added “std::” prefix to size_t variables
This commit is contained in:
1 parent
4f0afbbe64
commit
a53c878c81
5 files changed
+26
-36
No files matched your search
@@ -30,6 +30,9 @@ All you need to do is add
|
||||
|
||||
```cpp
|
||||
#include "json.h"
|
||||
|
||||
// for convenience
|
||||
using json = nlohmann::json;
|
||||
```
|
||||
|
||||
to the files you want to use JSON objects. Furthermore, you need to compile the file `json.cc` and link it to your binaries. Do not forget to set the necessary switches to enable C++11 (e.g., `-std=c++11` for GCC and Clang).
|
||||
|
||||
Reference in new issue
Block a user