Skip to content

Commit

Permalink
This does NOT compile with c++17 or newer!
Browse files Browse the repository at this point in the history
  • Loading branch information
ClausKlein committed Aug 23, 2023
1 parent b192a37 commit e09f240
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions ACE/ace/Auto_Ptr.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <memory>

# ifdef ACE_HAS_CPP17
// NOTE: we must only use std::unique_ptr; CK
# else
// FIXME: we are still using std::auto_ptr;
# endif

# include <memory> // 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
Expand Down

0 comments on commit e09f240

Please sign in to comment.