aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-04-04 16:42:20 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-04-04 16:42:20 +0200
commit5f027bad06203709c4130deaf349e74d8254422e (patch)
tree6631526aab6b1d838e8e7bc9231a5e19f41a0e3d
parent02dae10966d57d92327c2e5e6b987bf41f5a7054 (diff)
Add _has_cache() custom session interface, use in OLV implementation
-rw-r--r--odb/session.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/odb/session.hxx b/odb/session.hxx
index 377de81..f23e8a7 100644
--- a/odb/session.hxx
+++ b/odb/session.hxx
@@ -132,6 +132,9 @@ namespace odb
// Static cache API as expected by the rest of ODB.
//
public:
+ static bool
+ _has_cache () {return has_current ();}
+
// Position in the cache of the inserted element. The requirements
// for this class template are: default and copy-constructible as
// well as copy-assignable. The default constructor creates an