diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-09-05 10:20:47 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-09-05 10:20:47 +0200 |
commit | 9c275a93cec797a021571ba8545906e0b4ffbfbc (patch) | |
tree | d1a697417df10bd7b5fc35fa795d20855047c5e9 /odb/database.ixx | |
parent | 713b3a62d97c6bea7c23597094af6b2439314b8c (diff) |
Support for views; native part
Diffstat (limited to 'odb/database.ixx')
-rw-r--r-- | odb/database.ixx | 18 |
1 files changed, 9 insertions, 9 deletions
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<T> 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<T>::object_type object_type; + typedef typename details::meta::remove_const<T>::result type; - return query<T> (odb::query<object_type> (), cache); + return query<T> (odb::query<type> (), cache); } template <typename T> inline result<T> 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<T>::object_type object_type; + typedef typename details::meta::remove_const<T>::result type; - return query<T> (odb::query<object_type> (q), cache); + return query<T> (odb::query<type> (q), cache); } template <typename T> inline result<T> 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<T>::object_type object_type; + typedef typename details::meta::remove_const<T>::result type; - return query<T> (odb::query<object_type> (q), cache); + return query<T> (odb::query<type> (q), cache); } inline unsigned long long database:: |