Merge commit 'b9112977b074d67d6c83f04af36b6dabdf1d92c6' as 'external/json'
This commit is contained in:
13
external/json/docs/examples/json_pointer__string_t.cpp
vendored
Normal file
13
external/json/docs/examples/json_pointer__string_t.cpp
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
#include <iostream>
|
||||
#include <nlohmann/json.hpp>
|
||||
|
||||
using json = nlohmann::json;
|
||||
|
||||
int main()
|
||||
{
|
||||
json::json_pointer::string_t s = "This is a string.";
|
||||
|
||||
std::cout << s << std::endl;
|
||||
|
||||
std::cout << std::boolalpha << std::is_same<json::json_pointer::string_t, json::string_t>::value << std::endl;
|
||||
}
|
||||
Reference in New Issue
Block a user