From 7ec586556e348725bff3919f4787a75d71c520fa Mon Sep 17 00:00:00 2001 From: ipknHama Date: Sun, 13 Apr 2014 11:24:06 +0900 Subject: compiler error on invalid handler type; still no routing for dynamic url --- http_response.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'http_response.h') diff --git a/http_response.h b/http_response.h index eb7926f..7b862c4 100644 --- a/http_response.h +++ b/http_response.h @@ -29,11 +29,11 @@ namespace flask struct response { std::string body; - int status = 200; + int status{200}; std::unordered_map headers; response() {} explicit response(int status) : status(status) {} response(std::string body) : body(std::move(body)) {} - response(std::string body, int status) : body(std::move(body)), status(status) {} + response(int status, std::string body) : body(std::move(body)), status(status) {} }; } -- cgit v1.2.3-54-g00ecf