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:
Roland Bock 2013-09-05 23:57:37 +02:00
parent 92312445f8
commit a629988abe
2 changed files with 3 additions and 3 deletions

View File

@ -84,7 +84,7 @@ namespace sqlpp
template<typename T>
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) };
}
@ -152,7 +152,7 @@ namespace sqlpp
template<typename Container>
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) };
}

View File

@ -36,7 +36,7 @@ namespace sqlpp
template<typename Db, typename ResultRow>
class result_t
{
using db_result_t = typename Db::_result;
using db_result_t = typename Db::_result_t;
db_result_t _result;
raw_result_row_t _raw_result_row;