Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to compile ‘optional’ in namespace ‘drogon’ does not name a template type drogon::optional<SignatureData> parse(const drogon::HttpRequestPtr& req); #4

Open
albaropereyra22 opened this issue Jul 2, 2024 · 2 comments

Comments

@albaropereyra22
Copy link
Contributor

When I try to compile drogon assist I get the following error:
In file included from /home/albaro/drogon-assist/drogon/assist/http_signature.cpp:1:
/home/albaro/drogon-assist/drogon/assist/http_signature.hpp:27:9: error: ‘optional’ in namespace ‘drogon’ does not name a template type
27 | drogon::optional parse(const drogon::HttpRequestPtr& req);
| ^~~~~~~~
/home/albaro/drogon-assist/drogon/assist/http_signature.cpp:117:9: error: ‘optional’ in namespace ‘drogon’ does not name a template type
117 | drogon::optional parse(const drogon::HttpRequestPtr& req)
| ^~~~~~~~
/home/albaro/drogon-assist/drogon/assist/http_signature.cpp: In function ‘bool drassist::http_signature::verify(const HttpRequestPtr&, const Botan::Public_Key&)’:
/home/albaro/drogon-assist/drogon/assist/http_signature.cpp:227:17: error: ‘parse’ was not declared in this scope; did you mean ‘pause’?
227 | auto data = parse(req);
| ^~~~~
| pause
make[2]: *** [CMakeFiles/drogon_assist.dir/build.make:90: CMakeFiles/drogon_assist.dir/drogon/assist/http_signature.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/drogon_assist.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

Please advise,
Albaro

@albaropereyra22
Copy link
Contributor Author

image

@marty1885
Copy link
Member

This codebase is ancient and I need to update it. This likely broke when Drogon transitioned from C++14/17 to exclusively C++17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants