From 476f21938f75553d6bff5e8780b537f7182c5675 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/oracle/connection.ixx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'odb/oracle/connection.ixx') diff --git a/odb/oracle/connection.ixx b/odb/oracle/connection.ixx index 40a9eda..165c2df 100644 --- a/odb/oracle/connection.ixx +++ b/odb/oracle/connection.ixx @@ -6,6 +6,12 @@ namespace odb { namespace oracle { + 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