Fixed warnings about missing initializers

This commit is contained in:
rbock
2015-05-30 16:45:06 +02:00
parent 947bf9ddd3
commit 0807e57958
3 changed files with 17 additions and 11 deletions

View File

@@ -90,7 +90,7 @@ namespace sqlpp
return { _lhs,
_rhs,
{std::tuple<Expr...>{expr...}}
{std::tuple<Expr...>{expr...}, {}}
};
}
@@ -98,35 +98,35 @@ namespace sqlpp
join_t<inner_join_t, join_t, T> join(T t)
{
static_assert(not is_noop<On>::value, "join type requires on()");
return { *this, t };
return { *this, t, {} };
}
template<typename T>
join_t<inner_join_t, join_t, T> inner_join(T t)
{
static_assert(not is_noop<On>::value, "join type requires on()");
return { *this, t };
return { *this, t, {} };
}
template<typename T>
join_t<outer_join_t, join_t, T> outer_join(T t)
{
static_assert(not is_noop<On>::value, "join type requires on()");
return { *this, t };
return { *this, t, {} };
}
template<typename T>
join_t<left_outer_join_t, join_t, T> left_outer_join(T t)
{
static_assert(not is_noop<On>::value, "join type requires on()");
return { *this, t };
return { *this, t, {} };
}
template<typename T>
join_t<right_outer_join_t, join_t, T> right_outer_join(T t)
{
static_assert(not is_noop<On>::value, "join type requires on()");
return { *this, t };
return { *this, t, {} };
}
Lhs _lhs;

View File

@@ -60,31 +60,31 @@ namespace sqlpp
template<typename T>
join_t<inner_join_t, Table, T> join(T t) const
{
return { *static_cast<const Table*>(this), t };
return { *static_cast<const Table*>(this), t, {} };
}
template<typename T>
join_t<inner_join_t, Table, T> inner_join(T t) const
{
return { *static_cast<const Table*>(this), t };
return { *static_cast<const Table*>(this), t, {} };
}
template<typename T>
join_t<outer_join_t, Table, T> outer_join(T t) const
{
return { *static_cast<const Table*>(this), t };
return { *static_cast<const Table*>(this), t, {} };
}
template<typename T>
join_t<left_outer_join_t, Table, T> left_outer_join(T t) const
{
return { *static_cast<const Table*>(this), t };
return { *static_cast<const Table*>(this), t, {} };
}
template<typename T>
join_t<right_outer_join_t, Table, T> right_outer_join(T t) const
{
return { *static_cast<const Table*>(this), t };
return { *static_cast<const Table*>(this), t, {} };
}
template<typename AliasProvider>