diff --git a/include/sqlpp11/functions.h b/include/sqlpp11/functions.h index 1107b5b9..c38001b5 100644 --- a/include/sqlpp11/functions.h +++ b/include/sqlpp11/functions.h @@ -39,6 +39,8 @@ namespace sqlpp template\ struct NAME##_t\ {\ + static_assert(CONSTRAINT::type>::value, #NAME "() argument has constraint: " #CONSTRAINT);\ + static_assert(is_expression_t::type>::value, #NAME "() argument has contraint: is_expression_t");\ using _operand = typename operand_t::type;\ \ struct _op\