mirror of
https://github.com/rbock/sqlpp11.git
synced 2026-05-11 13:49:38 -05:00
Placate clang-3.5
This commit is contained in:
@@ -47,7 +47,7 @@ int main()
|
||||
{
|
||||
static_assert(sqlpp::can_be_null_t<decltype(row.alpha)>::value, "row.alpha can be null");
|
||||
static_assert(sqlpp::null_is_trivial_value_t<decltype(row.alpha)>::value, "row.alpha interprets null_is_trivial");
|
||||
static_assert(std::is_member_function_pointer<decltype(&decltype(row.alpha)::is_null)>::value, "Yikes");
|
||||
static_assert(std::is_same<bool, decltype(row.alpha.is_null())>::value, "Yikes");
|
||||
using T = sqlpp::wrap_operand_t<decltype(row.alpha)>;
|
||||
static_assert(sqlpp::can_be_null_t<T>::value, "row.alpha can be null");
|
||||
static_assert(sqlpp::is_result_field_t<T>::value, "result_fields are not wrapped");
|
||||
|
||||
@@ -359,7 +359,7 @@ int main()
|
||||
((t.alpha + 7) + 4).asc();
|
||||
static_assert(sqlpp::is_boolean_t<decltype(t.gamma == t.gamma)>::value, "Comparison expression have to be boolean");
|
||||
!t.gamma;
|
||||
t.beta < "kaesekuchen";
|
||||
serialize(t.beta < "kaesekuchen", printer).str();
|
||||
serialize(t.beta + "hallenhalma", printer).str();
|
||||
static_assert(sqlpp::must_not_insert_t<decltype(t.alpha)>::value, "alpha must not be inserted");
|
||||
serialize(t.alpha, printer).str();
|
||||
|
||||
Reference in New Issue
Block a user