diff --git a/include/sqlpp11/from.h b/include/sqlpp11/from.h index d5a41cf7..b6c9b4e6 100644 --- a/include/sqlpp11/from.h +++ b/include/sqlpp11/from.h @@ -220,6 +220,11 @@ namespace sqlpp } }; + template + auto from(T&&... t) -> decltype(statement_t().from(std::forward(t)...)) + { + return statement_t().from(std::forward(t)...); + } } #endif diff --git a/include/sqlpp11/select_column_list.h b/include/sqlpp11/select_column_list.h index ad40bf44..4dc12f1b 100644 --- a/include/sqlpp11/select_column_list.h +++ b/include/sqlpp11/select_column_list.h @@ -420,6 +420,11 @@ namespace sqlpp } }; + template + auto select_columns(T&&... t) -> decltype(statement_t().columns(std::forward(t)...)) + { + return statement_t().columns(std::forward(t)...); + } } #endif