Welcome to mirror list, hosted at ThFree Co, Russian Federation.

shared_ptr.hpp « std - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 23b69a192175c8c1e17957892347c93d5bce4c81 (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
26
27
#pragma once
#include "common_defines.hpp"

#ifdef new
#undef new
#endif

#include <boost/shared_ptr.hpp>
using boost::shared_ptr;

using boost::static_pointer_cast;

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