From 5f027bad06203709c4130deaf349e74d8254422e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 4 Apr 2016 16:42:20 +0200 Subject: Add _has_cache() custom session interface, use in OLV implementation --- odb/session.hxx | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.1