We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I would like to enable the SSL support so that I build crow with:
cmake ../ -DCROW_ENABLE_SSL=ON make -j2 make install
Then my PoC code is the following:
#include "crow.h" int main() { crow::SimpleApp app; CROW_ROUTE(app, "/")([](){ return "Hello world"; }); app.port(18080).ssl_file("test.crt", "test.key").run(); }
However, it doesn't work, g++ complains:
/usr/local/include/crow/app.h: In instantiation of ‘crow::Crow<Middlewares>::self_t& crow::Crow<Middlewares>::ssl_file(T&&, Remain&& ...) [with T = const char (&)[56]; Remain = {const char (&)[56]}; Middlewares = {}; self_t = crow::Crow<>]’: ./src/odcs.cpp:17:29: required from here /usr/local/include/crow/app.h:386:41: error: static assertion failed: Define CROW_ENABLE_SSL to enable ssl support. 386 | std::is_base_of<T, void>::value,
Is this normal or a bug?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I would like to enable the SSL support so that I build crow with:
Then my PoC code is the following:
However, it doesn't work, g++ complains:
Is this normal or a bug?
The text was updated successfully, but these errors were encountered: