0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-16 04:47:18 +08:00

Added default constructor for result type

This commit is contained in:
Roland Bock 2013-10-05 20:14:05 +02:00
parent 29165b2ce3
commit 3718f4a57c

View File

@ -44,8 +44,14 @@ namespace sqlpp
ResultRow _result_row; ResultRow _result_row;
public: public:
result_t():
_raw_result_row({}),
_end({}),
_result_row(_raw_result_row)
{}
result_t(db_result_t&& result): result_t(db_result_t&& result):
_result(std::forward<db_result_t>(result)), _result(std::move(result)),
_raw_result_row(_result.next()), _raw_result_row(_result.next()),
_end({}), _end({}),
_result_row(_raw_result_row) _result_row(_raw_result_row)