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

Removed a few obsolete "typename"

This commit is contained in:
rbock 2014-06-14 07:49:43 +02:00
parent 269f2e7e17
commit ef6c7e0c0d
10 changed files with 15 additions and 15 deletions

View File

@ -78,7 +78,7 @@ namespace sqlpp
};
template<typename T>
auto any(T t) -> typename any_t<wrap_operand_t<T>>
auto any(T t) -> any_t<wrap_operand_t<T>>
{
static_assert(is_select_t<wrap_operand_t<T>>::value, "any() requires a select expression as argument");
static_assert(is_expression_t<wrap_operand_t<T>>::value, "any() requires a single column select expression as argument");

View File

@ -86,14 +86,14 @@ namespace sqlpp
};
template<typename T>
auto avg(T t) -> typename avg_t<noop, wrap_operand_t<T>>
auto avg(T t) -> avg_t<noop, wrap_operand_t<T>>
{
static_assert(is_numeric_t<wrap_operand_t<T>>::value, "avg() requires a value expression as argument");
return { t };
}
template<typename T>
auto avg(const sqlpp::distinct_t&, T t) -> typename avg_t<sqlpp::distinct_t, wrap_operand_t<T>>
auto avg(const sqlpp::distinct_t&, T t) -> avg_t<sqlpp::distinct_t, wrap_operand_t<T>>
{
static_assert(is_numeric_t<wrap_operand_t<T>>::value, "avg() requires a value expression as argument");
return { t };

View File

@ -87,14 +87,14 @@ namespace sqlpp
};
template<typename T>
auto count(T t) -> typename count_t<noop, wrap_operand_t<T>>
auto count(T t) -> count_t<noop, wrap_operand_t<T>>
{
static_assert(is_expression_t<wrap_operand_t<T>>::value, "count() requires an expression as argument");
return { t };
}
template<typename T>
auto count(const sqlpp::distinct_t&, T t) -> typename count_t<sqlpp::distinct_t, wrap_operand_t<T>>
auto count(const sqlpp::distinct_t&, T t) -> count_t<sqlpp::distinct_t, wrap_operand_t<T>>
{
static_assert(is_expression_t<wrap_operand_t<T>>::value, "count() requires an expression as argument");
return { t };

View File

@ -81,7 +81,7 @@ namespace sqlpp
template<typename T>
auto exists(T t) -> typename exists_t<wrap_operand_t<T>>
auto exists(T t) -> exists_t<wrap_operand_t<T>>
{
static_assert(is_select_t<wrap_operand_t<T>>::value, "exists() requires a select expression as argument");
return { t };

View File

@ -80,7 +80,7 @@ namespace sqlpp
};
template<typename T>
auto max(T t) -> typename max_t<wrap_operand_t<T>>
auto max(T t) -> max_t<wrap_operand_t<T>>
{
static_assert(is_expression_t<wrap_operand_t<T>>::value, "max() requires a value expression as argument");
return { t };

View File

@ -80,7 +80,7 @@ namespace sqlpp
};
template<typename T>
auto min(T t) -> typename min_t<wrap_operand_t<T>>
auto min(T t) -> min_t<wrap_operand_t<T>>
{
static_assert(is_expression_t<wrap_operand_t<T>>::value, "min() requires a value expression as argument");
return { t };

View File

@ -78,7 +78,7 @@ namespace sqlpp
};
template<typename T>
auto some(T t) -> typename some_t<wrap_operand_t<T>>
auto some(T t) -> some_t<wrap_operand_t<T>>
{
static_assert(is_select_t<wrap_operand_t<T>>::value, "some() requires a single column select expression as argument");
static_assert(is_expression_t<wrap_operand_t<T>>::value, "some() requires a single column select expression as argument");

View File

@ -86,14 +86,14 @@ namespace sqlpp
};
template<typename T>
auto sum(T t) -> typename sum_t<noop, wrap_operand_t<T>>
auto sum(T t) -> sum_t<noop, wrap_operand_t<T>>
{
static_assert(is_numeric_t<wrap_operand_t<T>>::value, "sum() requires a numeric expression as argument");
return { t };
}
template<typename T>
auto sum(const sqlpp::distinct_t&, T t) -> typename sum_t<sqlpp::distinct_t, wrap_operand_t<T>>
auto sum(const sqlpp::distinct_t&, T t) -> sum_t<sqlpp::distinct_t, wrap_operand_t<T>>
{
static_assert(is_numeric_t<wrap_operand_t<T>>::value, "sum() requires a numeric expression as argument");
return { t };

View File

@ -49,7 +49,7 @@ namespace sqlpp
~update_list_data_t() = default;
std::tuple<Assignments...> _assignments;
typename interpretable_list_t<Database> _dynamic_assignments;
interpretable_list_t<Database> _dynamic_assignments;
};
// UPDATE ASSIGNMENTS

View File

@ -8,9 +8,9 @@ endmacro ()
#build_and_run(InterpretTest)
build_and_run(InsertTest)
#build_and_run(RemoveTest)
#build_and_run(UpdateTest)
#build_and_run(SelectTest)
build_and_run(RemoveTest)
build_and_run(UpdateTest)
build_and_run(SelectTest)
#build_and_run(SelectTypeTest)
#build_and_run(FunctionTest)
#build_and_run(PreparedTest)