From 61da179143555f0a0920813590a73edac6b85075 Mon Sep 17 00:00:00 2001 From: rbock Date: Mon, 25 Aug 2014 08:51:40 +0200 Subject: [PATCH] Minor code cleanup --- include/sqlpp11/floating_point.h | 16 ++-------------- include/sqlpp11/integral.h | 16 ++-------------- 2 files changed, 4 insertions(+), 28 deletions(-) diff --git a/include/sqlpp11/floating_point.h b/include/sqlpp11/floating_point.h index 60fd2bf3..94230075 100644 --- a/include/sqlpp11/floating_point.h +++ b/include/sqlpp11/floating_point.h @@ -119,13 +119,7 @@ namespace sqlpp public basic_expression_operators { template - struct _is_valid_operand - { - static constexpr bool value = - is_expression_t::value // expressions are OK - and floating_point::template _is_valid_operand::value // the correct value type is required, of course - ; - }; + using _is_valid_operand = is_valid_operand; template plus_t> operator +(T t) const @@ -176,13 +170,7 @@ namespace sqlpp struct column_operators { template - struct _is_valid_operand - { - static constexpr bool value = - is_expression_t::value // expressions are OK - and floating_point::template _is_valid_operand::value // the correct value type is required, of course - ; - }; + using _is_valid_operand = is_valid_operand; template auto operator +=(T t) const -> assignment_t>> diff --git a/include/sqlpp11/integral.h b/include/sqlpp11/integral.h index eb5915f9..a14e966b 100644 --- a/include/sqlpp11/integral.h +++ b/include/sqlpp11/integral.h @@ -119,13 +119,7 @@ namespace sqlpp struct expression_operators: public basic_expression_operators { template - struct _is_valid_operand - { - static constexpr bool value = - is_expression_t::value // expressions are OK - and integral::template _is_valid_operand::value // the correct value type is required, of course - ; - }; + using _is_valid_operand = is_valid_operand; template plus_t, wrap_operand_t> operator +(T t) const @@ -206,13 +200,7 @@ namespace sqlpp struct column_operators { template - struct _is_valid_operand - { - static constexpr bool value = - is_expression_t::value // expressions are OK - and integral::template _is_valid_operand::value // the correct value type is required, of course - ; - }; + using _is_valid_operand = is_valid_operand; template auto operator +=(T t) const -> assignment_t, wrap_operand_t>>