Always include <memory.h> before discussing auto_ptr

This commit is contained in:
clanmills 2020-05-02 13:06:19 +01:00
parent cd5c3e4ff9
commit e0f65f7e75

View File

@ -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>