From 9c275a93cec797a021571ba8545906e0b4ffbfbc Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 5 Sep 2011 10:20:47 +0200 Subject: Support for views; native part --- odb/database.ixx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'odb/database.ixx') diff --git a/odb/database.ixx b/odb/database.ixx index dbdcaec..c4b3c77 100644 --- a/odb/database.ixx +++ b/odb/database.ixx @@ -200,33 +200,33 @@ namespace odb inline result database:: query (bool cache) { - // T can be const T while object_type will always be T. + // T can be const T. // - typedef typename odb::object_traits::object_type object_type; + typedef typename details::meta::remove_const::result type; - return query (odb::query (), cache); + return query (odb::query (), cache); } template inline result database:: query (const char* q, bool cache) { - // T can be const T while object_type will always be T. + // T can be const T. // - typedef typename odb::object_traits::object_type object_type; + typedef typename details::meta::remove_const::result type; - return query (odb::query (q), cache); + return query (odb::query (q), cache); } template inline result database:: query (const std::string& q, bool cache) { - // T can be const T while object_type will always be T. + // T can be const T. // - typedef typename odb::object_traits::object_type object_type; + typedef typename details::meta::remove_const::result type; - return query (odb::query (q), cache); + return query (odb::query (q), cache); } inline unsigned long long database:: -- cgit v1.1