aboutsummaryrefslogtreecommitdiff
path: root/odb/view-result.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-10-27 15:16:49 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-10-27 15:16:49 +0200
commit658a2f07b47ed80bd3ca35edd7380493c326daa3 (patch)
tree9df443d8820a2a53f6b8839adc36cde0c723f5cd /odb/view-result.hxx
parentac2c76e2412ff332022215b71bb106c8ea6dd3d0 (diff)
Add support for persistent classes without object ids
New pragma id (object). New test: common/no-id.
Diffstat (limited to 'odb/view-result.hxx')
-rw-r--r--odb/view-result.hxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/odb/view-result.hxx b/odb/view-result.hxx
index a3cebf8..3f5a043 100644
--- a/odb/view-result.hxx
+++ b/odb/view-result.hxx
@@ -20,11 +20,11 @@
namespace odb
{
template <typename T>
- class result_impl<T, class_view>: public details::shared_base
+ class view_result_impl: public details::shared_base
{
public:
virtual
- ~result_impl ();
+ ~view_result_impl ();
protected:
friend class result<T>;
@@ -42,7 +42,7 @@ namespace odb
typedef typename view_traits::pointer_type pointer_type;
typedef odb::pointer_traits<pointer_type> pointer_traits;
- result_impl (database_type& db)
+ view_result_impl (database_type& db)
: begin_ (true), end_ (false), db_ (db), current_ ()
{
}
@@ -127,7 +127,7 @@ namespace odb
//
typedef typename view_traits<T>::view_type view_type;
- typedef result_impl<view_type, class_view> result_impl_type;
+ typedef view_result_impl<view_type> result_impl_type;
public:
explicit
@@ -212,7 +212,7 @@ namespace odb
// T can be const T while view_type is always non-const.
//
typedef typename view_traits<T>::view_type view_type;
- typedef result_impl<view_type, class_view> result_impl_type;
+ typedef view_result_impl<view_type> result_impl_type;
};
}