Skip to content

Commit 566c927

Browse files
committed
Add a static assert for a more readable error
1 parent f2e0f3d commit 566c927

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Framework/Core/include/Framework/GroupedCombinations.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ template <typename G, typename A>
4141
expressions::BindingNode getMatchingIndexNode()
4242
{
4343
using external_index_columns_pack = typename A::external_index_columns_t;
44+
static_assert(pack_size(external_index_columns_pack{}) > 0, "No external indices");
4445
using selected_indices_t = selected_pack_multicondition<is_index_to_g_t, pack<G>, external_index_columns_pack>;
4546
static_assert(pack_size(selected_indices_t{}) == 1, "No matching index column from associated to grouping");
4647
using index_column_t = pack_head_t<selected_indices_t>;

0 commit comments

Comments
 (0)