Refactor the examples to compile with a C++11 compiler

This commit is contained in:
Duncan Ogilvie 2018-08-17 11:49:42 +02:00
parent 48b47ef209
commit 4af5b1e441
3 changed files with 12 additions and 13 deletions

View file

@ -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");
});