aboutsummaryrefslogtreecommitdiff
path: root/odb/result.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-10-07 18:21:39 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-10-07 18:21:39 +0200
commitb5922fe3759de1d5a4941a8bdc5402350359425b (patch)
treee4dfea9499ec46d5f2d4ec01fde1bf6505379c8f /odb/result.hxx
parent9486224f3d675d5498bbfee7fe4e10b01204b635 (diff)
Add support for persistent classes without default ctors
New test: common/ctor.
Diffstat (limited to 'odb/result.hxx')
-rw-r--r--odb/result.hxx19
1 files changed, 1 insertions, 18 deletions
diff --git a/odb/result.hxx b/odb/result.hxx
index 9f7dcb0..ff9f057 100644
--- a/odb/result.hxx
+++ b/odb/result.hxx
@@ -41,21 +41,7 @@ namespace odb
typedef typename traits::pointer_traits pointer_traits;
pointer_type
- current (bool release)
- {
- if (pointer_traits::null_ptr (current_) && !end_)
- current ();
-
- pointer_type r (current_);
-
- if (release)
- {
- current_ = pointer_type ();
- guard_.release ();
- }
-
- return r;
- }
+ current (bool release);
bool
end () const
@@ -65,9 +51,6 @@ namespace odb
protected:
virtual void
- current () = 0;
-
- virtual void
current (T&) = 0;
virtual void