2014-02-09 07:25:23 +08:00
|
|
|
// stdafx.h : include file for standard system include files,
|
|
|
|
// or project specific include files that are used frequently, but
|
|
|
|
// are changed infrequently
|
|
|
|
//
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
#include "targetver.h"
|
|
|
|
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <chrono>
|
|
|
|
#include <ctime>
|
|
|
|
#include <memory>
|
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef _MSC_VER
|
|
|
|
namespace std
|
|
|
|
{
|
|
|
|
template<typename T, typename ...Args>
|
|
|
|
std::unique_ptr<T> make_unique( Args&& ...args )
|
|
|
|
{
|
|
|
|
return std::unique_ptr<T>( new T( std::forward<Args>(args)... ) );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|