From 4ff8f46ff2484c0882a1b0873b08e65e2349c849 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 2 Nov 2011 11:04:55 +0200 Subject: Add result_iterator::id() function that returns id without loading object --- odb/object-result.hxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/odb/object-result.hxx b/odb/object-result.hxx index 8b0b502..9895e91 100644 --- a/odb/object-result.hxx +++ b/odb/object-result.hxx @@ -281,6 +281,12 @@ namespace odb void load (object_type&); + id_type + id () + { + return res_->load_id (); + } + protected: result_impl_type* res_; }; -- cgit v1.1