commit | 8a9a25c821f40b9cd2d94a483581c435e4e4a27e | [log] [tgz] |
---|---|---|
author | Ed Tanous <edtanous@google.com> | Tue May 11 14:50:58 2021 -0700 |
committer | Ed Tanous <ed@tanous.net> | Wed May 12 19:51:16 2021 +0000 |
tree | a568a8b7a700a6eeba1514588f0a122368ea1e96 | |
parent | ad0006e4500f349beb425a7d5b21feac685bdb9f [diff] [blame] |
Include what you use in http request and response https://jenkins.openbmc.org/job/ci-openbmc/3949/distro=ubuntu,label=docker-builder,target=tiogapass/consoleText This build seems to be failing with an error | ../git/http/http_response.hpp:23:10: error: 'optional' in namespace 'std' does not name a template type | 23 | std::optional<response_type> stringResponse; This should fix it by including the relevant headers. Tested: Code builds. CI error only. Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: Ifba15559a73d823d791de1d508e136a3c44e6cd1
diff --git a/http/http_response.hpp b/http/http_response.hpp index 7965704..72ff9e9 100644 --- a/http/http_response.hpp +++ b/http/http_response.hpp
@@ -5,7 +5,9 @@ #include <boost/beast/http/message.hpp> #include <boost/beast/http/string_body.hpp> +#include <optional> #include <string> +#include <string_view> namespace crow {