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/database.hxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'odb/database.hxx') diff --git a/odb/database.hxx b/odb/database.hxx index adeb83a..2a25f7f 100644 --- a/odb/database.hxx +++ b/odb/database.hxx @@ -366,14 +366,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