You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But when I try to compile, I am getting the following errors:
error C2672: 'operator __surrogate_func': no matching overloaded function found
error C2783: 'void crow::detail::handler_call_bridge<crow::TaggedRule<crow::black_magic::single_tag_to_type<4>::type>,crow::Crow<crow::CORSHandler,AuthorisationMiddleware> &,AuthorisationMiddleware>::operator ()(F &&)': could not deduce template argument for 'F'
The text was updated successfully, but these errors were encountered:
I tried to recreate this but got a different error:
error: ‘crow::Crow<AuthorisationMiddleware>&’ is not a class, struct, or union type
I fixed that by using the middlewares() method directly instead of CROW_MIDDLEWARES (the line was .middlewares<crow::App<AuthorisationMiddleware>, AuthorisationMiddleware>())
Hello,
I am trying to use local middleware in a blueprint.
I defined my application as follows:
Then I define my blueprint
initApi()
function contains:But when I try to compile, I am getting the following errors:
The text was updated successfully, but these errors were encountered: