From 7945c1771bbb57125b3e3343fa84bfc314e0f4d4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 14 Nov 2016 14:42:38 +0200 Subject: Fix few C++11-related warnings --- cutl/container/any.hxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cutl/container/any.hxx') diff --git a/cutl/container/any.hxx b/cutl/container/any.hxx index 5dd1c25..c8d6308 100644 --- a/cutl/container/any.hxx +++ b/cutl/container/any.hxx @@ -5,7 +5,7 @@ #ifndef CUTL_CONTAINER_ANY_HXX #define CUTL_CONTAINER_ANY_HXX -#include // std::auto_ptr +#include // std::unique_ptr/auto_ptr #include // std::type_info #include @@ -144,7 +144,11 @@ namespace cutl }; private: +#ifdef LIBCUTL_CXX11 + std::unique_ptr holder_; +#else std::auto_ptr holder_; +#endif }; } } -- cgit v1.1