aboutsummaryrefslogtreecommitdiff
path: root/odb/pgsql/view-result.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-04-23 16:48:02 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-04-23 16:48:02 +0200
commit40267e1f40de8ea216688886ab1df1c7ec50e2b2 (patch)
tree046030dabdd352808c71cf1f2a9bfed706e86c2a /odb/pgsql/view-result.hxx
parent3405fff26a02b5bee51686c5d22200be320b87d8 (diff)
Polymorphic inheritance support
Diffstat (limited to 'odb/pgsql/view-result.hxx')
-rw-r--r--odb/pgsql/view-result.hxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/odb/pgsql/view-result.hxx b/odb/pgsql/view-result.hxx
index 84a910d..341065d 100644
--- a/odb/pgsql/view-result.hxx
+++ b/odb/pgsql/view-result.hxx
@@ -9,11 +9,12 @@
#include <cstddef> // std::size_t
+#include <odb/view-result.hxx>
+
#include <odb/details/shared-ptr.hxx>
#include <odb/pgsql/version.hxx>
#include <odb/pgsql/forward.hxx> // query, view_statements
-#include <odb/pgsql/result.hxx>
#include <odb/pgsql/statement.hxx>
namespace odb
@@ -32,12 +33,14 @@ namespace odb
typedef typename base_type::pointer_type pointer_type;
typedef typename base_type::pointer_traits pointer_traits;
+ typedef view_statements<view_type> statements_type;
+
virtual
~view_result_impl ();
view_result_impl (const query&,
details::shared_ptr<select_statement>,
- view_statements<view_type>&);
+ statements_type&);
virtual void
load (view_type&);
@@ -55,7 +58,7 @@ namespace odb
private:
details::shared_ptr<select_statement> statement_;
- view_statements<view_type>& statements_;
+ statements_type& statements_;
};
}
}