diff --git a/include/crow/app.h b/include/crow/app.h index 6fd288222..c906215aa 100644 --- a/include/crow/app.h +++ b/include/crow/app.h @@ -708,6 +708,8 @@ namespace crow template std::tuple make_middleware_tuple(Ts&&... ts) { + static_assert(black_magic::type_pack::template is_superset_of::value, "Constructor argument types must be a subset of the Crow template types"); + auto fwd = std::forward_as_tuple((ts)...); return std::make_tuple( std::forward(