Skip to content

Commit

Permalink
Fix: [linux] Silence warnings about deprecated use of std::auto_ptr. …
Browse files Browse the repository at this point in the history
…Use std::unique_ptr for GCC > 4.4
  • Loading branch information
planetmaker committed Sep 18, 2021
1 parent 60cabbe commit e3c2507
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion nel/include/nel/misc/types_nl.h
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,12 @@ extern void operator delete[](void *p) throw();
# define CHashMap ::__gnu_cxx::hash_map
# define CHashSet ::__gnu_cxx::hash_set
# define CHashMultiMap ::__gnu_cxx::hash_multimap
# define CUniquePtr ::std::auto_ptr
// From GCC 4.4 onward std:unique_ptr should be available in std library. It's deprectated later on
# if GCC_VERSION > 40400
# define CUniquePtr ::std::unique_ptr
# else
# define CUniquePtr ::std::auto_ptr
# endif
# define CUniquePtrMove

namespace __gnu_cxx {
Expand Down

0 comments on commit e3c2507

Please sign in to comment.