Make result methods templates of their statement, not their statement's policies

This commit is contained in:
rbock
2014-10-27 07:31:37 +01:00
parent f107a45ba5
commit 23d0bc91a1
6 changed files with 22 additions and 16 deletions

View File

@@ -46,10 +46,10 @@ namespace sqlpp
using _traits = make_traits<no_value_t, tag::is_return_value>;
struct _name_t {};
template<typename Policies>
template<typename Statement>
struct _result_methods_t
{
using _statement_t = derived_statement_t<Policies>;
using _statement_t = Statement;
const _statement_t& _get_statement() const
{