mirror of
https://github.com/rbock/sqlpp11.git
synced 2026-05-01 08:29:16 -05:00
Added derived_statement_t alias
This commit is contained in:
@@ -177,7 +177,7 @@ namespace sqlpp
|
||||
auto flags(Args... args) const
|
||||
-> _new_statement_t<select_flag_list_t<void, Args...>>
|
||||
{
|
||||
return { *static_cast<const typename Policies::_statement_t*>(this), select_flag_list_data_t<void, Args...>{args...} };
|
||||
return { static_cast<const derived_statement_t<Policies>&>(*this), select_flag_list_data_t<void, Args...>{args...} };
|
||||
}
|
||||
|
||||
template<typename... Args>
|
||||
@@ -185,7 +185,7 @@ namespace sqlpp
|
||||
-> _new_statement_t<select_flag_list_t<_database_t, Args...>>
|
||||
{
|
||||
static_assert(not std::is_same<_database_t, void>::value, "dynamic_flags must not be called in a static statement");
|
||||
return { *static_cast<const typename Policies::_statement_t*>(this), select_flag_list_data_t<_database_t, Args...>{args...} };
|
||||
return { static_cast<const derived_statement_t<Policies>&>(*this), select_flag_list_data_t<_database_t, Args...>{args...} };
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user