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:
parent
92312445f8
commit
a629988abe
@ -84,7 +84,7 @@ namespace sqlpp
|
|||||||
template<typename T>
|
template<typename T>
|
||||||
auto value(T&& t) -> typename operand_t<T, is_value_t>::type
|
auto value(T&& t) -> typename operand_t<T, is_value_t>::type
|
||||||
{
|
{
|
||||||
static_assert(not is_value_t<typename std::decay<T>::type>::value, "value() is to be called with non-sqlpp-type like int, or string");
|
static_assert(not is_value_t<typename std::decay<T>::type>::value, "value() is to be called with non-sql-type like int, or string");
|
||||||
return { std::forward<T>(t) };
|
return { std::forward<T>(t) };
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -152,7 +152,7 @@ namespace sqlpp
|
|||||||
template<typename Container>
|
template<typename Container>
|
||||||
auto value_list(Container&& c) -> value_list_t<typename std::decay<Container>::type>
|
auto value_list(Container&& c) -> value_list_t<typename std::decay<Container>::type>
|
||||||
{
|
{
|
||||||
static_assert(not is_value_t<typename std::decay<Container>::type::value_type>::value, "value_list() is to be called with a container of non-sqlpp-type like std::vector<int>, or std::list(string)");
|
static_assert(not is_value_t<typename std::decay<Container>::type::value_type>::value, "value_list() is to be called with a container of non-sql-type like std::vector<int>, or std::list(string)");
|
||||||
return { std::forward<Container>(c) };
|
return { std::forward<Container>(c) };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ namespace sqlpp
|
|||||||
template<typename Db, typename ResultRow>
|
template<typename Db, typename ResultRow>
|
||||||
class result_t
|
class result_t
|
||||||
{
|
{
|
||||||
using db_result_t = typename Db::_result;
|
using db_result_t = typename Db::_result_t;
|
||||||
|
|
||||||
db_result_t _result;
|
db_result_t _result;
|
||||||
raw_result_row_t _raw_result_row;
|
raw_result_row_t _raw_result_row;
|
||||||
|
Loading…
Reference in New Issue
Block a user