diff --git a/include/sqlpp11/into.h b/include/sqlpp11/into.h index 9395e840..fe07b073 100644 --- a/include/sqlpp11/into.h +++ b/include/sqlpp11/into.h @@ -114,16 +114,14 @@ namespace sqlpp return db.insert(*this); } - /* - template - auto _prepare(Db& db) const - -> prepared_insert_t - { - _statement_t::_check_consistency(); + template + auto _prepare(Db& db) const + -> prepared_insert_t + { + _statement_t::_check_consistency(); - return {{}, db.prepare_insert(*this)}; - } - */ + return {{}, db.prepare_insert(*this)}; + } }; }; diff --git a/include/sqlpp11/parameter_list.h b/include/sqlpp11/parameter_list.h index e7386d2a..c023e3f7 100644 --- a/include/sqlpp11/parameter_list.h +++ b/include/sqlpp11/parameter_list.h @@ -64,40 +64,8 @@ namespace sqlpp } }; - namespace detail - { - template - struct get_parameter_tuple - { - using type = std::tuple<>; - }; - - template - struct get_parameter_tuple::value, void>::type> - { - using type = std::tuple; - }; - - template - struct get_parameter_tuple, void> - { - // cat together parameter tuples - using type = decltype(std::tuple_cat(std::declval::type>()...)); - }; - - template - struct get_parameter_tuple::value, void>::type> - { - using type = typename get_parameter_tuple::type; - }; - - } - template - struct make_parameter_list_t - { - using type = parameter_list_t::type>; - }; + using make_parameter_list_t = parameter_list_t>; } diff --git a/include/sqlpp11/prepared_select.h b/include/sqlpp11/prepared_select.h index fab451ca..da958a73 100644 --- a/include/sqlpp11/prepared_select.h +++ b/include/sqlpp11/prepared_select.h @@ -36,7 +36,7 @@ namespace sqlpp struct prepared_select_t { using _result_row_t = typename Select::template _result_row_t; - using _parameter_list_t = typename Select::_parameter_list_t; + using _parameter_list_t = parameters_of