From f48f1b9cf756802642474172ae00325bc2040477 Mon Sep 17 00:00:00 2001 From: Bartosz Wieczorek Date: Mon, 19 Feb 2018 12:38:23 +0100 Subject: [PATCH] fixup --- include/sqlpp11/update_list.h | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/include/sqlpp11/update_list.h b/include/sqlpp11/update_list.h index 662525b8..b27d008e 100644 --- a/include/sqlpp11/update_list.h +++ b/include/sqlpp11/update_list.h @@ -258,7 +258,7 @@ namespace sqlpp -> _new_statement_t, update_list_t> { using Check = check_update_static_set_t; - return _set_impl(Check{}, assignments...); + return _set_impl(Check{}, std::make_tuple(assignments...)); } template @@ -275,21 +275,13 @@ namespace sqlpp update_list_t<_database_t, Assignments...>> { using Check = check_update_dynamic_set_t<_database_t, Assignments...>; - return _set_impl<_database_t>(Check{}, assignments...); + return _set_impl<_database_t>(Check{}, std::make_tuple(assignments...)); } private: template auto _set_impl(Check, Assignments... assignments) const -> inconsistent; - template - auto _set_impl(consistent_t /*unused*/, Assignments... assignments) const - -> _new_statement_t> - { - return {static_cast&>(*this), - update_list_data_t{std::forward_as_tuple(assignments...)}}; - } - template auto _set_impl(consistent_t /*unused*/, std::tuple assignments) const -> _new_statement_t>