]> git.lyx.org Git - lyx.git/blob - src/support/shared_ptr.h
Fix bugs #6078 and #9364
[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_CXX11
16
17 #include <memory>
18 #define LYX_SHAREDPTR_NS std
19
20 #else
21
22 #include <boost/shared_ptr.hpp>
23 #include <boost/make_shared.hpp>
24 #define LYX_SHAREDPTR_NS boost
25
26 #endif
27
28 namespace lyx
29 {
30         using LYX_SHAREDPTR_NS::shared_ptr;
31         using LYX_SHAREDPTR_NS::make_shared;
32         using LYX_SHAREDPTR_NS::const_pointer_cast;
33 }
34
35 #undef LYX_SHAREDPTR_NS
36
37
38 #endif