0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-15 20:31:16 +08:00

Streamlined basic value types

This commit is contained in:
rbock 2014-03-28 18:09:21 +01:00
parent bef4d0874b
commit 3f1460cd2e
4 changed files with 4 additions and 3 deletions

View File

@ -42,6 +42,7 @@ namespace sqlpp
// boolean value type
struct boolean
{
using _value_type = boolean;
using _base_value_type = boolean;
using _is_boolean = std::true_type;
using _is_value = std::true_type;

View File

@ -41,6 +41,7 @@ namespace sqlpp
// floating_point value type
struct floating_point
{
using _value_type = floating_point;
using _base_value_type = floating_point;
using _is_numeric = std::true_type;
using _is_floating_point = std::true_type;

View File

@ -42,8 +42,7 @@ namespace sqlpp
// integral value type
struct integral
{
#warning why do I need base_value_type? Would it be sufficient to use _value_type instead?
#warning what is the difference between _is_value and _is_expression?
using _value_type = integral;
using _base_value_type = integral;
using _is_numeric = std::true_type;
using _is_integral = std::true_type;
@ -51,7 +50,6 @@ namespace sqlpp
using _is_expression = std::true_type;
using _cpp_value_type = int64_t;
using _value_type = integral;
struct _parameter_t
{

View File

@ -41,6 +41,7 @@ namespace sqlpp
// text value type
struct text
{
using _value_type = text;
using _base_value_type = text;
using _is_text = std::true_type;
using _is_value = std::true_type;