0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-15 20:31:16 +08:00

Minor code cleanup

This commit is contained in:
rbock 2014-01-24 00:31:53 +01:00
parent 019a920739
commit f443564d62
2 changed files with 11 additions and 6 deletions

View File

@ -103,6 +103,16 @@ namespace sqlpp
using _container_t = Container; using _container_t = Container;
using _value_type = typename operand_t<typename _container_t::value_type, is_value_t>::type::_value_type; using _value_type = typename operand_t<typename _container_t::value_type, is_value_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; _container_t _container;
}; };

View File

@ -57,16 +57,11 @@ namespace sqlpp
}; };
}; };
in_t(const Operand& operand, const Args&... args): in_t(Operand operand, Args... args):
_operand(operand), _operand(operand),
_args(args...) _args(args...)
{} {}
in_t(Operand&& operand, Args&&... args):
_operand(std::move(operand)),
_args(std::move(args...))
{}
in_t(const in_t&) = default; in_t(const in_t&) = default;
in_t(in_t&&) = default; in_t(in_t&&) = default;
in_t& operator=(const in_t&) = default; in_t& operator=(const in_t&) = default;