From f443564d628e0dfce441e18b4d33112c65b8d37c Mon Sep 17 00:00:00 2001 From: rbock Date: Fri, 24 Jan 2014 00:31:53 +0100 Subject: [PATCH] Minor code cleanup --- include/sqlpp11/functions.h | 10 ++++++++++ include/sqlpp11/vendor/in.h | 7 +------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/include/sqlpp11/functions.h b/include/sqlpp11/functions.h index e891e584..32f30085 100644 --- a/include/sqlpp11/functions.h +++ b/include/sqlpp11/functions.h @@ -103,6 +103,16 @@ namespace sqlpp using _container_t = Container; using _value_type = typename operand_t::type::_value_type; + value_list_t(_container_t container): + _container(container) + {} + + value_list_t(const value_list_t&) = default; + value_list_t(value_list_t&&) = default; + value_list_t& operator=(const value_list_t&) = default; + value_list_t& operator=(value_list_t&&) = default; + ~value_list_t() = default; + _container_t _container; }; diff --git a/include/sqlpp11/vendor/in.h b/include/sqlpp11/vendor/in.h index a7d9ecff..c3e20b25 100644 --- a/include/sqlpp11/vendor/in.h +++ b/include/sqlpp11/vendor/in.h @@ -57,16 +57,11 @@ namespace sqlpp }; }; - in_t(const Operand& operand, const Args&... args): + in_t(Operand operand, Args... args): _operand(operand), _args(args...) {} - in_t(Operand&& operand, Args&&... args): - _operand(std::move(operand)), - _args(std::move(args...)) - {} - in_t(const in_t&) = default; in_t(in_t&&) = default; in_t& operator=(const in_t&) = default;