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:
parent
29165b2ce3
commit
3718f4a57c
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user