From ee4d942916d347ac65f53969941b0fb100760611 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 27 Mar 2015 16:30:36 +0200 Subject: Get pointer_type from correct traits (object, view), part 2 --- odb/database.hxx | 10 +++++----- odb/database.ixx | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/odb/database.hxx b/odb/database.hxx index 1c44745..8ee5c55 100644 --- a/odb/database.hxx +++ b/odb/database.hxx @@ -277,7 +277,7 @@ namespace odb // Query one API. // template - typename object_traits::pointer_type + typename result::pointer_type query_one (); template @@ -289,7 +289,7 @@ namespace odb query_value (); template - typename object_traits::pointer_type + typename result::pointer_type query_one (const char*); template @@ -301,7 +301,7 @@ namespace odb query_value (const char*); template - typename object_traits::pointer_type + typename result::pointer_type query_one (const std::string&); template @@ -313,7 +313,7 @@ namespace odb query_value (const std::string&); template - typename object_traits::pointer_type + typename result::pointer_type query_one (const odb::query&); template @@ -594,7 +594,7 @@ namespace odb erase_object_ (I, I, bool); template - typename object_traits::pointer_type + typename result::pointer_type query_one_ (const Q&); template diff --git a/odb/database.ixx b/odb/database.ixx index 2b32c63..2fd54c0 100644 --- a/odb/database.ixx +++ b/odb/database.ixx @@ -571,7 +571,7 @@ namespace odb } template - inline typename object_traits::pointer_type database:: + inline typename result::pointer_type database:: query_one () { return query_one (odb::query ()); @@ -592,7 +592,7 @@ namespace odb } template - inline typename object_traits::pointer_type database:: + inline typename result::pointer_type database:: query_one (const char* q) { return query_one (odb::query (q)); @@ -613,7 +613,7 @@ namespace odb } template - inline typename object_traits::pointer_type database:: + inline typename result::pointer_type database:: query_one (const std::string& q) { return query_one (odb::query (q)); @@ -641,7 +641,7 @@ namespace odb } template - inline typename object_traits::pointer_type database:: + inline typename result::pointer_type database:: query_one (const odb::query& q) { return query_one_ (q); @@ -823,7 +823,7 @@ namespace odb } template - inline typename object_traits::pointer_type database:: + inline typename result::pointer_type database:: query_one_ (const Q& q) { result r (query_::call (*this, q)); -- cgit v1.1