From e3dafcdf8b43880c6a1e0451c8ee621f7c3cb954 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 16 Jan 2013 16:31:29 +0200 Subject: Make session cache management functions static, add notifications --- odb/session.ixx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'odb/session.ixx') diff --git a/odb/session.ixx b/odb/session.ixx index 50a2ca1..4748cae 100644 --- a/odb/session.ixx +++ b/odb/session.ixx @@ -12,6 +12,7 @@ namespace odb { // @@ Empty maps are not cleaned up by this version of erase. // - p.map_->erase (p.pos_); + if (p.map_ != 0) + p.map_->erase (p.pos_); } } -- cgit v1.1