File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -215,7 +215,8 @@ namespace sqlpp
215
215
216
216
using lhs_result_row_t = get_result_row_t <derived_statement_t <Policies>>;
217
217
using rhs_result_row_t = get_result_row_t <Rhs>;
218
- static_assert (lhs_result_row_t::is_compatible (detail::type_vector<rhs_result_row_t >{}),
218
+ constexpr auto vec_rhs = detail::type_vector<rhs_result_row_t >{};
219
+ static_assert (lhs_result_row_t::is_compatible (vec_rhs),
219
220
" both arguments in a union have to have the same result columns (type and name)" );
220
221
static_assert (
221
222
is_static_result_row_t <lhs_result_row_t >::value && is_static_result_row_t <rhs_result_row_t >::value,
@@ -236,7 +237,8 @@ namespace sqlpp
236
237
237
238
using lhs_result_row_t = get_result_row_t <derived_statement_t <Policies>>;
238
239
using rhs_result_row_t = get_result_row_t <Rhs>;
239
- static_assert (lhs_result_row_t::is_compatible (detail::type_vector<rhs_result_row_t >{}),
240
+ constexpr auto vec_rhs = detail::type_vector<rhs_result_row_t >{};
241
+ static_assert (lhs_result_row_t::is_compatible (vec_rhs),
240
242
" both arguments in a union have to have the same result columns (type and name)" );
241
243
static_assert (
242
244
is_static_result_row_t <lhs_result_row_t >::value && is_static_result_row_t <rhs_result_row_t >::value,
You can’t perform that action at this time.
0 commit comments