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

Fixed compile-error for parameter

(need to do the same for other value types, too)
This commit is contained in:
rbock 2014-03-27 09:25:35 +01:00
parent 5ba9908d66
commit c0595aa6f2
2 changed files with 6 additions and 1 deletions

View File

@ -42,12 +42,16 @@ 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 _base_value_type = integral;
using _is_numeric = std::true_type;
using _is_integral = std::true_type;
using _is_value = std::true_type;
using _is_expression = std::true_type;
using _cpp_value_type = int64_t;
using _value_type = integral;
struct _parameter_t
{

View File

@ -28,6 +28,7 @@
#define SQLPP_PARAMETER_H
#include <sqlpp11/type_traits.h>
#include <sqlpp11/alias_provider.h>
#include <sqlpp11/detail/type_set.h>
namespace sqlpp
@ -81,7 +82,7 @@ namespace sqlpp
auto parameter(const ValueType&, const AliasProvider&)
-> parameter_t<ValueType, AliasProvider>
{
static_assert(is_expression_t<ValueType>::value, "first argument is not an expression");
static_assert(is_value_t<ValueType>::value, "first argument is not a value type");
static_assert(is_alias_provider_t<AliasProvider>::value, "second argument is not an alias provider");
return {};
}