|
|
@ -94,14 +94,12 @@ typedef int pid_t;
|
|
|
|
//////////////////////////////////////
|
|
|
|
//////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
|
|
// https://softwareengineering.stackexchange.com/questions/291141/how-to-handle-design-changes-for-auto-ptr-deprecation-in-c11
|
|
|
|
// https://softwareengineering.stackexchange.com/questions/291141/how-to-handle-design-changes-for-auto-ptr-deprecation-in-c11
|
|
|
|
|
|
|
|
#if __cplusplus >= 201103L
|
|
|
|
#include <memory>
|
|
|
|
#include <memory>
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#if __cplusplus >= 201103L
|
|
|
|
|
|
|
|
template <typename T>
|
|
|
|
template <typename T>
|
|
|
|
using auto_ptr = std::unique_ptr<T>;
|
|
|
|
using auto_ptr = std::unique_ptr<T>;
|
|
|
|
#else
|
|
|
|
|
|
|
|
using std::auto_ptr;
|
|
|
|
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#endif // _CONFIG_H_
|
|
|
|
#endif // _CONFIG_H_
|
|
|
|