aboutsummaryrefslogtreecommitdiff
path: root/odb/connection.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-11-09 18:14:37 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-11-09 18:14:37 +0200
commit644cba591ff6ec046ac4274b7c343dead847736e (patch)
tree70574b1ca044af28bccb01be7b4126aff3a63b42 /odb/connection.cxx
parentf18ea631bbe47a116a6b8ad6da5ab10a5be8158f (diff)
Make database class move-constructible
This means it can be returned by value from a function in C++11.
Diffstat (limited to 'odb/connection.cxx')
-rw-r--r--odb/connection.cxx6
1 files changed, 4 insertions, 2 deletions
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<connection&> (*this)))
+ if (factory_.database ().call_query_factory (
+ name, const_cast<connection&> (*this)))
i = prepared_map_.find (name);
}