0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-16 04:47:18 +08:00

Maybe easier to grok for MSVC

This commit is contained in:
rbock 2016-10-11 07:19:39 +02:00
parent fa0fe887b5
commit 4dad08653a

View File

@ -215,7 +215,8 @@ namespace sqlpp
using lhs_result_row_t = get_result_row_t<derived_statement_t<Policies>>;
using rhs_result_row_t = get_result_row_t<Rhs>;
static_assert(lhs_result_row_t::is_compatible(detail::type_vector<rhs_result_row_t>{}),
constexpr auto vec_rhs = detail::type_vector<rhs_result_row_t>{};
static_assert(lhs_result_row_t::is_compatible(vec_rhs),
"both arguments in a union have to have the same result columns (type and name)");
static_assert(
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
using lhs_result_row_t = get_result_row_t<derived_statement_t<Policies>>;
using rhs_result_row_t = get_result_row_t<Rhs>;
static_assert(lhs_result_row_t::is_compatible(detail::type_vector<rhs_result_row_t>{}),
constexpr auto vec_rhs = detail::type_vector<rhs_result_row_t>{};
static_assert(lhs_result_row_t::is_compatible(vec_rhs),
"both arguments in a union have to have the same result columns (type and name)");
static_assert(
is_static_result_row_t<lhs_result_row_t>::value && is_static_result_row_t<rhs_result_row_t>::value,