From 72f9ee644d3a048e68ba9570a096b6dd12c5ee1a 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. --- common/wrapper/test.hxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'common/wrapper/test.hxx') diff --git a/common/wrapper/test.hxx b/common/wrapper/test.hxx index 9e3dc2b..36aec87 100644 --- a/common/wrapper/test.hxx +++ b/common/wrapper/test.hxx @@ -231,7 +231,11 @@ namespace test5 unsigned long id; #pragma db null +#ifdef HAVE_CXX11 + std::unique_ptr p; +#else std::auto_ptr p; +#endif odb::nullable n; -- cgit v1.1