From 644cba591ff6ec046ac4274b7c343dead847736e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 9 Nov 2015 18:14:37 +0200 Subject: Make database class move-constructible This means it can be returned by value from a function in C++11. --- odb/connection.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'odb/connection.cxx') diff --git a/odb/connection.cxx b/odb/connection.cxx index 87f76d3..e3bc946 100644 --- a/odb/connection.cxx +++ b/odb/connection.cxx @@ -12,6 +12,8 @@ using namespace std; namespace odb { + // connection + // connection:: ~connection () { @@ -98,8 +100,8 @@ namespace odb { // Use a factory, if there is one. // - if (database_.call_query_factory (name, - const_cast (*this))) + if (factory_.database ().call_query_factory ( + name, const_cast (*this))) i = prepared_map_.find (name); } -- cgit v1.1