mirror of
https://github.com/rbock/sqlpp11.git
synced 2026-01-02 03:00:38 -06:00
Intermediate state
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015-2015, Roland Bock
|
||||
* Copyright (c) 2015-2016, Roland Bock
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
@@ -66,20 +66,21 @@ namespace
|
||||
void allowed_comparands()
|
||||
{
|
||||
static_check_comparison<sqlpp::consistent_t>(std::chrono::system_clock::now());
|
||||
static_check_comparison<sqlpp::consistent_t>(t.someDayPoint);
|
||||
static_check_comparison<sqlpp::consistent_t>(t.otherDayPoint);
|
||||
static_check_comparison<sqlpp::consistent_t>(t.someTimePoint);
|
||||
static_check_comparison<sqlpp::consistent_t>(t.otherTimePoint);
|
||||
}
|
||||
|
||||
void disallowed_comparands()
|
||||
{
|
||||
static_check_comparison<sqlpp::assert_valid_rhs_comparison_operand_t>(17);
|
||||
static_check_comparison<sqlpp::assert_valid_rhs_comparison_operand_t>('a');
|
||||
static_check_comparison<sqlpp::assert_valid_rhs_comparison_operand_t>(std::string("a"));
|
||||
static_check_comparison<sqlpp::assert_valid_rhs_comparison_operand_t>(t);
|
||||
static_check_comparison<sqlpp::assert_valid_rhs_comparison_operand_t>(t.someBool);
|
||||
static_check_comparison<sqlpp::assert_valid_rhs_comparison_operand_t>(t.someFloat);
|
||||
static_check_comparison<sqlpp::assert_valid_rhs_comparison_operand_t>(t.someInt);
|
||||
static_check_comparison<sqlpp::assert_valid_rhs_comparison_operand_t>(t.someString);
|
||||
static_check_comparison<sqlpp::assert_comparison_valid_rhs_operand_t>(17);
|
||||
static_check_comparison<sqlpp::assert_comparison_valid_rhs_operand_t>('a');
|
||||
static_check_comparison<sqlpp::assert_comparison_valid_rhs_operand_t>(std::string("a"));
|
||||
static_check_comparison<sqlpp::assert_comparison_valid_rhs_operand_t>(t);
|
||||
static_check_comparison<sqlpp::assert_comparison_valid_rhs_operand_t>(t.someBool);
|
||||
static_check_comparison<sqlpp::assert_comparison_valid_rhs_operand_t>(t.someFloat);
|
||||
static_check_comparison<sqlpp::assert_comparison_valid_rhs_operand_t>(t.someInt);
|
||||
static_check_comparison<sqlpp::assert_comparison_valid_rhs_operand_t>(t.someString);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user