From e09f240025d1e876504d2e2faf1de3a4ffaed405 Mon Sep 17 00:00:00 2001 From: ClausKlein Date: Wed, 23 Aug 2023 19:21:00 +0200 Subject: [PATCH] This does NOT compile with c++17 or newer! --- ACE/ace/Auto_Ptr.h | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/ACE/ace/Auto_Ptr.h b/ACE/ace/Auto_Ptr.h index 2ea646eb60eea..4b3f1f23ec09d 100644 --- a/ACE/ace/Auto_Ptr.h +++ b/ACE/ace/Auto_Ptr.h @@ -68,16 +68,9 @@ class ACE_Auto_Basic_Ptr ACE_END_VERSIONED_NAMESPACE_DECL -// NOTE: ACE7 and TAO3 require C++11 support or newer; jwillemsen commented on Jun 1, 2021 #if !defined (ACE_LACKS_AUTO_PTR) -# include - -# ifdef ACE_HAS_CPP17 -// NOTE: we must only use std::unique_ptr; CK -# else -// FIXME: we are still using std::auto_ptr; -# endif - +# include // NOTE: Workaround only, still needed! 2023-08-23 CK +using std::auto_ptr; // FIXME(CK): This does NOT compile with c++17 or newer!!! #else /* !ACE_LACKS_AUTO_PTR */ ACE_BEGIN_VERSIONED_NAMESPACE_DECL