diff --git a/include/sqlpp11/result.h b/include/sqlpp11/result.h index 5c245f5b..0629ef7f 100644 --- a/include/sqlpp11/result.h +++ b/include/sqlpp11/result.h @@ -44,8 +44,14 @@ namespace sqlpp ResultRow _result_row; public: + result_t(): + _raw_result_row({}), + _end({}), + _result_row(_raw_result_row) + {} + result_t(db_result_t&& result): - _result(std::forward(result)), + _result(std::move(result)), _raw_result_row(_result.next()), _end({}), _result_row(_raw_result_row)