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/readonly/test.hxx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'common/readonly') diff --git a/common/readonly/test.hxx b/common/readonly/test.hxx index 689b571..926b596 100644 --- a/common/readonly/test.hxx +++ b/common/readonly/test.hxx @@ -5,6 +5,8 @@ #ifndef TEST_HXX #define TEST_HXX +#include // HAVE_CXX11 + #include #include // std::auto_ptr @@ -203,10 +205,17 @@ struct wrapper #pragma db id unsigned long id; +#ifdef HAVE_CXX11 + std::unique_ptr pl; + const std::unique_ptr cpl; + std::unique_ptr pcl; + const std::unique_ptr cpcl; +#else std::auto_ptr pl; const std::auto_ptr cpl; std::auto_ptr pcl; const std::auto_ptr cpcl; +#endif }; // Readonly object with auto id. -- cgit v1.1