diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-06-15 18:50:51 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-06-15 18:50:51 +0200 |
commit | 13dd928ae18ef9610bc820b7b3e65629addea1d2 (patch) | |
tree | d9ee8ef03e3ee5a3be9925de08537b03cf29320b /odb/database.hxx | |
parent | b33321c4d05c0ac759bf3fcf647a568af8bfca0c (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/database.hxx')
-rw-r--r-- | odb/database.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
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<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> |