blob: 6a7dcf7590bd3f3072e6a685e6fe6769108e184d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#pragma once
#include "common_defines.hpp"
#ifdef new
#undef new
#endif
#include <boost/shared_ptr.hpp>
using boost::shared_ptr;
template <typename T>
inline shared_ptr<T> make_shared_ptr(T * t)
{
return shared_ptr<T>(t);
}
template <typename T, typename U>
inline shared_ptr<T> make_shared_ptr(T * t, U u)
{
return shared_ptr<T>(t, u);
}
#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif
|