]> git.lyx.org Git - lyx.git/blob - src/support/shared_ptr.h
Fix C++11 test
[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 #ifdef LYX_USE_TR1
16
17 #include <memory>
18
19 #ifdef __GNUC__
20 #include <tr1/memory>
21 #endif
22
23 namespace lyx
24 {
25         using std::tr1::shared_ptr;
26         using std::tr1::const_pointer_cast;
27 }
28
29 #else
30
31 #include <boost/shared_ptr.hpp>
32
33 namespace lyx
34 {
35         using boost::shared_ptr;
36         using boost::const_pointer_cast;
37 }
38
39 #endif
40
41
42 #endif