From 3718f4a57c845d336460276bf98de1331d670957 Mon Sep 17 00:00:00 2001 From: Roland Bock Date: Sat, 5 Oct 2013 20:14:05 +0200 Subject: [PATCH] Added default constructor for result type --- include/sqlpp11/result.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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)