Always include <memory.h> before discussing auto_ptr
This commit is contained in:
parent
cd5c3e4ff9
commit
e0f65f7e75
@ -94,8 +94,8 @@ typedef int pid_t;
|
||||
//////////////////////////////////////
|
||||
|
||||
// https://softwareengineering.stackexchange.com/questions/291141/how-to-handle-design-changes-for-auto-ptr-deprecation-in-c11
|
||||
#include <memory>
|
||||
#if __cplusplus >= 201103L
|
||||
#include <memory>
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
template <typename T>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user