aboutsummaryrefslogtreecommitdiff
path: root/odb/connection.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-06-15 18:50:51 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-06-15 18:50:51 +0200
commit13dd928ae18ef9610bc820b7b3e65629addea1d2 (patch)
treed9ee8ef03e3ee5a3be9925de08537b03cf29320b /odb/connection.hxx
parentb33321c4d05c0ac759bf3fcf647a568af8bfca0c (diff)
Get rid of C++11 deprecation warnings for auto_ptr, exception specs
In particular, std::auto_ptr is no longer mapped in C++11.
Diffstat (limited to 'odb/connection.hxx')
-rw-r--r--odb/connection.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/odb/connection.hxx b/odb/connection.hxx
index f1f8c3b..cbf9f6e 100644
--- a/odb/connection.hxx
+++ b/odb/connection.hxx
@@ -78,14 +78,14 @@ namespace odb
void
cache_query (const prepared_query<T>&);
- template <typename T, typename P>
- void
- cache_query (const prepared_query<T>&, std::auto_ptr<P> params);
-
#ifdef ODB_CXX11
template <typename T, typename P>
void
cache_query (const prepared_query<T>&, std::unique_ptr<P> params);
+#else
+ template <typename T, typename P>
+ void
+ cache_query (const prepared_query<T>&, std::auto_ptr<P> params);
#endif
template <typename T>