From 13dd928ae18ef9610bc820b7b3e65629addea1d2 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 15 Jun 2016 18:50:51 +0200 Subject: Get rid of C++11 deprecation warnings for auto_ptr, exception specs In particular, std::auto_ptr is no longer mapped in C++11. --- odb/connection.hxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'odb/connection.hxx') 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&); - template - void - cache_query (const prepared_query&, std::auto_ptr

params); - #ifdef ODB_CXX11 template void cache_query (const prepared_query&, std::unique_ptr

params); +#else + template + void + cache_query (const prepared_query&, std::auto_ptr

params); #endif template -- cgit v1.1