]> git.lyx.org Git - lyx.git/blob - src/support/shared_ptr.h
Fix build with GNU libstdc++ C++11 ABI
[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 #if __cplusplus >= 201103L
16
17 #include <memory>
18 #define LYX_SHAREDPTR_NS std
19
20 #else
21
22 #include <boost/shared_ptr.hpp>
23 #define LYX_SHAREDPTR_NS boost
24
25 #endif
26
27 namespace lyx
28 {
29         using LYX_SHAREDPTR_NS::shared_ptr;
30         using LYX_SHAREDPTR_NS::const_pointer_cast;
31 }
32
33 #undef LYX_SHAREDPTR_NS
34
35
36 #endif