diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-11-09 18:14:37 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-11-09 18:14:37 +0200 |
commit | 476f21938f75553d6bff5e8780b537f7182c5675 (patch) | |
tree | 27bc4afb2c6a8a673dee0eebeedcf4d7090b5437 /odb/oracle/connection.ixx | |
parent | 56a8e716a30df1c894e6ccfa16c4a0bfb43baa9c (diff) |
Make database class move-constructible
This means it can be returned by value from a function in C++11.
Diffstat (limited to 'odb/oracle/connection.ixx')
-rw-r--r-- | odb/oracle/connection.ixx | 6 |
1 files changed, 6 insertions, 0 deletions
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<connection_factory&> (factory_).database (); + } + template <typename T> inline prepared_query<T> connection:: prepare_query (const char* n, const char* q) |