From 6a5c18a54f7ee2c53385e48a46820033d8561450 Mon Sep 17 00:00:00 2001 From: The-EDev Date: Sat, 9 Apr 2022 04:45:32 +0300 Subject: [PATCH] Fixed issue where Crow wouldn't compile when using CROW_MIDDLEWARES with a pass-by-reference app --- include/crow/app.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/crow/app.h b/include/crow/app.h index 7eb327983..66462f3da 100644 --- a/include/crow/app.h +++ b/include/crow/app.h @@ -29,7 +29,7 @@ #else #define CROW_ROUTE(app, url) app.route(url) #define CROW_BP_ROUTE(blueprint, url) blueprint.new_rule_tagged(url) -#define CROW_MIDDLEWARES(app, ...) middlewares() +#define CROW_MIDDLEWARES(app, ...) middlewares::type, __VA_ARGS__>() #endif #define CROW_CATCHALL_ROUTE(app) app.catchall_route() #define CROW_BP_CATCHALL_ROUTE(blueprint) blueprint.catchall_rule()