From fc70be62d8698496a20b6947d102757f426c5b3e 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/pgsql/connection.ixx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'odb/pgsql/connection.ixx') diff --git a/odb/pgsql/connection.ixx b/odb/pgsql/connection.ixx index f549dd4..92ce453 100644 --- a/odb/pgsql/connection.ixx +++ b/odb/pgsql/connection.ixx @@ -6,6 +6,12 @@ namespace odb { namespace pgsql { + 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