From 417d317a65908748f17dcd95d3cf7f2f09aafb01 Mon Sep 17 00:00:00 2001 From: rbock Date: Wed, 5 Feb 2014 10:12:07 +0100 Subject: [PATCH] Added a bunch of operator interpretations --- include/sqlpp11/vendor/wrap_operand.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/include/sqlpp11/vendor/wrap_operand.h b/include/sqlpp11/vendor/wrap_operand.h index 3b221e1f..106a6349 100644 --- a/include/sqlpp11/vendor/wrap_operand.h +++ b/include/sqlpp11/vendor/wrap_operand.h @@ -46,10 +46,11 @@ namespace sqlpp { static constexpr bool _is_expression = true; using _value_type = sqlpp::detail::boolean; + using _value_t = bool; bool _is_trivial() const { return _t == false; } - bool _t; + _value_t _t; }; template @@ -69,10 +70,11 @@ namespace sqlpp { static constexpr bool _is_expression = true; using _value_type = ::sqlpp::detail::integral; + using _value_t = T; bool _is_trivial() const { return _t == 0; } - T _t; + _value_t _t; }; template @@ -93,10 +95,11 @@ namespace sqlpp { static constexpr bool _is_expression = true; using _value_type = ::sqlpp::detail::floating_point; + using _value_t = T; bool _is_trivial() const { return _t == 0; } - T _t; + _value_t _t; }; template @@ -115,10 +118,11 @@ namespace sqlpp { static constexpr bool _is_expression = true; using _value_type = ::sqlpp::detail::text; + using _value_t = std::string; bool _is_trivial() const { return _t.empty(); } - std::string _t; + _value_t _t; }; template