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. --- mssql/types/test.hxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mssql/types') diff --git a/mssql/types/test.hxx b/mssql/types/test.hxx index aea64cb..0519567 100644 --- a/mssql/types/test.hxx +++ b/mssql/types/test.hxx @@ -20,6 +20,8 @@ typedef struct _GUID } GUID; #endif +#include // HAVE_CXX11 + #include #include #include // std::auto_ptr @@ -321,7 +323,11 @@ struct long_null unsigned int id_; #pragma db type ("VARCHAR(max)") null +#ifdef HAVE_CXX11 + std::unique_ptr str_; +#else std::auto_ptr str_; +#endif bool operator== (const long_null& y) const -- cgit v1.1