From 50a8751ebbbada53323dcec7c30725917dce06c0 Mon Sep 17 00:00:00 2001 From: "Pershin E.A" Date: Thu, 10 Oct 2019 17:27:17 +0700 Subject: [PATCH] Remove auto_ptr for cxx17 --- libhsclient/hstcpcli.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libhsclient/hstcpcli.hpp b/libhsclient/hstcpcli.hpp index 11dec8e..82268f4 100644 --- a/libhsclient/hstcpcli.hpp +++ b/libhsclient/hstcpcli.hpp @@ -30,7 +30,11 @@ struct hstcpcli_filter { }; struct hstcpcli_i; -typedef std::auto_ptr hstcpcli_ptr; +#if __cplusplus >= 201103L || (defined(_CPPLIB_VER) && _CPPLIB_VER >= 520) +typedef std::unique_ptr hstcpcli_ptr; +#else +typedef std::auto_ptr hstcpcli_ptr; +#endif struct hstcpcli_i { virtual ~hstcpcli_i() { }