From 9bafeadb554fd4dfc11ce5c2b036a937008455f9 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 10 Aug 2010 13:16:47 +0200 Subject: Make result copy-assignable Return result from database::query instead of pointer to impl --- odb/database.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'odb/database.hxx') diff --git a/odb/database.hxx b/odb/database.hxx index 1b3a6d6..0a993d5 100644 --- a/odb/database.hxx +++ b/odb/database.hxx @@ -71,15 +71,15 @@ namespace odb // Object query API. // template - shared_ptr > + result query (); template - shared_ptr > + result query (const std::string&); template - shared_ptr > + result query (const odb::query&); // Transaction API. -- cgit v1.1