From 2bf2944a844d002267d3508ce81a2128ccbb8af7 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/sqlite/connection.ixx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'odb/sqlite/connection.ixx') diff --git a/odb/sqlite/connection.ixx b/odb/sqlite/connection.ixx index 23df27c..ab6d72e 100644 --- a/odb/sqlite/connection.ixx +++ b/odb/sqlite/connection.ixx @@ -32,6 +32,12 @@ namespace odb // connection // + inline database& connection:: + database () + { + return static_cast (factory_).database (); + } + template inline prepared_query connection:: prepare_query (const char* n, const char* q) -- cgit v1.1