From d1a3ab596a58018e5b9d4afb54658eef79bfbb55 Mon Sep 17 00:00:00 2001 From: rbock Date: Fri, 9 Oct 2015 21:12:23 +0200 Subject: [PATCH] Prepared basic expression operators for compile time tests --- include/sqlpp11/basic_expression_operators.h | 94 +++++++++++++++++--- 1 file changed, 80 insertions(+), 14 deletions(-) diff --git a/include/sqlpp11/basic_expression_operators.h b/include/sqlpp11/basic_expression_operators.h index eea5a364..abad7cfb 100644 --- a/include/sqlpp11/basic_expression_operators.h +++ b/include/sqlpp11/basic_expression_operators.h @@ -28,6 +28,7 @@ #define SQLPP_DETAIL_BASIC_EXPRESSION_OPERATORS_H #include +#include #include #include #include @@ -58,60 +59,125 @@ namespace sqlpp static_check_t::value...>::value, assert_valid_in_arguments_t>; + namespace detail + { + template class Expr, typename Lhs> + struct new_unary_expression_impl + { + using type = bad_statement; + }; + + template