From 5c7facfdd4e068d950e02fdde511dd6d9ae734c4 Mon Sep 17 00:00:00 2001 From: Roland Bock Date: Sun, 27 Oct 2024 12:44:13 +0100 Subject: [PATCH] Remove deferral in select_column_list Wow, finally! --- include/sqlpp11/core/clause/select_column_list.h | 12 +----------- include/sqlpp11/core/type_traits/aggregates.h | 2 +- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/include/sqlpp11/core/clause/select_column_list.h b/include/sqlpp11/core/clause/select_column_list.h index ed61fad8..a504d916 100644 --- a/include/sqlpp11/core/clause/select_column_list.h +++ b/include/sqlpp11/core/clause/select_column_list.h @@ -146,18 +146,8 @@ namespace sqlpp return static_cast(*this); } - template - struct _deferred_field_t - { - using type = make_field_spec_t<_statement_t, Column>; - }; - - template - using _field_t = typename _deferred_field_t::type; - -#warning: This should not require the Db parameter for deferral, see select_as. template - using _result_row_t = result_row_t...>; + using _result_row_t = result_row_t...>; template auto as(const NameTagProvider&) const diff --git a/include/sqlpp11/core/type_traits/aggregates.h b/include/sqlpp11/core/type_traits/aggregates.h index f8238310..fa84a1ce 100644 --- a/include/sqlpp11/core/type_traits/aggregates.h +++ b/include/sqlpp11/core/type_traits/aggregates.h @@ -76,7 +76,7 @@ namespace sqlpp struct is_aggregate_expression : public std::integral_constant::value or - KnownAggregateColumns::template contains()> + KnownAggregateColumns::template contains::value> { };