From a3c2b186fb43d90784f616c839ce6766a7040357 Mon Sep 17 00:00:00 2001 From: Roland Bock Date: Sun, 3 Oct 2021 09:35:11 +0200 Subject: [PATCH] Remove same-name check for result columns The compiler actually does a much better job at telling you if two result columns have the same name as soon as you are trying to use them. In contrast to the static_assert, the compiler will even say which name is ambiguous. --- include/sqlpp11/select_column_list.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/include/sqlpp11/select_column_list.h b/include/sqlpp11/select_column_list.h index 5c15043e..5d13c071 100644 --- a/include/sqlpp11/select_column_list.h +++ b/include/sqlpp11/select_column_list.h @@ -424,10 +424,6 @@ namespace sqlpp auto _columns_impl(consistent_t /*unused*/, std::tuple args) const -> _new_statement_t> { - static_assert(not detail::has_duplicates::value, "at least one duplicate argument detected"); - static_assert(not detail::has_duplicates::value, - "at least one duplicate name detected"); - return {static_cast&>(*this), typename select_column_list_t::_data_t{args}}; }