diff options
author | ipknHama <ipknhama@gmail.com> | 2014-04-13 11:24:06 +0900 |
---|---|---|
committer | ipknHama <ipknhama@gmail.com> | 2014-04-13 11:24:06 +0900 |
commit | 7ec586556e348725bff3919f4787a75d71c520fa (patch) | |
tree | b9ca0d11bbe6637ab4b451e7d14702a4c167872f /http_response.h | |
parent | 152a5c8c2cf2fe59f3b61047db41ad3c9c6c9bd2 (diff) | |
download | crow-7ec586556e348725bff3919f4787a75d71c520fa.tar.gz crow-7ec586556e348725bff3919f4787a75d71c520fa.zip |
compiler error on invalid handler type; still no routing for dynamic url
Diffstat (limited to 'http_response.h')
-rw-r--r-- | http_response.h | 4 |
1 files changed, 2 insertions, 2 deletions
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<std::string, std::string> 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) {} }; } |