]> git.lyx.org Git - lyx.git/blob - src/support/shared_ptr.h
also use TR1 code for bind and shared_ptr when compiling with GCC >= 4.4
[lyx.git] / src / support / shared_ptr.h
1 // -*- C++ -*-
2 /**
3  * \file shared_ptr.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Peter Kümmel
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef LYX_SHARED_PTR_H
13 #define LYX_SHARED_PTR_H
14
15 #include "checktr1.h"
16
17
18 #ifdef LYX_USE_TR1
19
20 #include <memory>
21
22 #ifdef __GNUC__
23 #include <tr1/memory>
24 #endif
25
26 namespace lyx
27 {
28         using std::tr1::shared_ptr;
29 }
30
31 #else
32
33 #include <boost/shared_ptr.hpp>
34
35 namespace lyx
36 {
37         using boost::shared_ptr;
38 }
39
40 #endif
41
42
43 #endif