Refactor the examples to compile with a C++11 compiler
This commit is contained in:
parent
48b47ef209
commit
4af5b1e441
3 changed files with 12 additions and 13 deletions
|
@ -12,7 +12,7 @@ int main(void)
|
|||
{
|
||||
Server svr;
|
||||
|
||||
svr.Get("/hi", [](const auto& /*req*/, auto& res) {
|
||||
svr.Get("/hi", [](const Request& /*req*/, Response& res) {
|
||||
res.set_content("Hello World!", "text/plain");
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue