diff options
Diffstat (limited to 'odb/connection.ixx')
-rw-r--r-- | odb/connection.ixx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/odb/connection.ixx b/odb/connection.ixx index e86f8d8..1ed64bb 100644 --- a/odb/connection.ixx +++ b/odb/connection.ixx @@ -64,24 +64,24 @@ namespace odb cache_query_ (pq.impl_, typeid (T), 0, 0, 0); } +#ifdef ODB_CXX11 template <typename T, typename P> inline void connection:: - cache_query (const prepared_query<T>& pq, std::auto_ptr<P> params) + cache_query (const prepared_query<T>& pq, std::unique_ptr<P> params) { assert (pq); - assert (params.get () != 0); + assert (params); cache_query_ ( pq.impl_, typeid (T), params.get (), &typeid (P), ¶ms_deleter<P>); params.release (); } - -#ifdef ODB_CXX11 +#else template <typename T, typename P> inline void connection:: - cache_query (const prepared_query<T>& pq, std::unique_ptr<P> params) + cache_query (const prepared_query<T>& pq, std::auto_ptr<P> params) { assert (pq); - assert (params); + assert (params.get () != 0); cache_query_ ( pq.impl_, typeid (T), params.get (), &typeid (P), ¶ms_deleter<P>); params.release (); |