We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 045e447 commit b99b4c2Copy full SHA for b99b4c2
examples/example_with_all.cpp
@@ -33,7 +33,7 @@ int main()
33
34
CROW_ROUTE(app, "/json-initializer-list-constructor")
35
([] {
36
- return crow::json::wvalue({
+ crow::json::wvalue r({
37
{"first", "Hello world!"}, /* stores a char const* hence a json::type::String */
38
{"second", std::string("How are you today?")}, /* stores a std::string hence a json::type::String. */
39
{"third", 54}, /* stores an int (as 54 is an int literal) hence a std::int64_t. */
@@ -45,6 +45,7 @@ int main()
45
{"ninth", nullptr}, /* stores a std::nullptr hence json::type::Null . */
46
{"tenth", true} /* stores a bool hence json::type::True . */
47
});
48
+ return r;
49
50
51
// json list response
0 commit comments