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:
parent
fa0fe887b5
commit
4dad08653a
@ -215,7 +215,8 @@ namespace sqlpp
|
|||||||
|
|
||||||
using lhs_result_row_t = get_result_row_t<derived_statement_t<Policies>>;
|
using lhs_result_row_t = get_result_row_t<derived_statement_t<Policies>>;
|
||||||
using rhs_result_row_t = get_result_row_t<Rhs>;
|
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)");
|
"both arguments in a union have to have the same result columns (type and name)");
|
||||||
static_assert(
|
static_assert(
|
||||||
is_static_result_row_t<lhs_result_row_t>::value && is_static_result_row_t<rhs_result_row_t>::value,
|
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 lhs_result_row_t = get_result_row_t<derived_statement_t<Policies>>;
|
||||||
using rhs_result_row_t = get_result_row_t<Rhs>;
|
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)");
|
"both arguments in a union have to have the same result columns (type and name)");
|
||||||
static_assert(
|
static_assert(
|
||||||
is_static_result_row_t<lhs_result_row_t>::value && is_static_result_row_t<rhs_result_row_t>::value,
|
is_static_result_row_t<lhs_result_row_t>::value && is_static_result_row_t<rhs_result_row_t>::value,
|
||||||
|
Loading…
Reference in New Issue
Block a user