Skip to content

Commit b99b4c2

Browse files
committed
fix for compilation error on Windos/ VIsual Studio build
1 parent 045e447 commit b99b4c2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/example_with_all.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ int main()
3333

3434
CROW_ROUTE(app, "/json-initializer-list-constructor")
3535
([] {
36-
return crow::json::wvalue({
36+
crow::json::wvalue r({
3737
{"first", "Hello world!"}, /* stores a char const* hence a json::type::String */
3838
{"second", std::string("How are you today?")}, /* stores a std::string hence a json::type::String. */
3939
{"third", 54}, /* stores an int (as 54 is an int literal) hence a std::int64_t. */
@@ -45,6 +45,7 @@ int main()
4545
{"ninth", nullptr}, /* stores a std::nullptr hence json::type::Null . */
4646
{"tenth", true} /* stores a bool hence json::type::True . */
4747
});
48+
return r;
4849
});
4950

5051
// json list response

0 commit comments

Comments
 (0)