]> git.lyx.org Git - lyx.git/blob - src/support/functional.h
bb60029611ec5c73b08c9202ee78819849c44645
[lyx.git] / src / support / functional.h
1 // -*- C++ -*-
2 /**
3  * \file functional.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_FUNCTIONAL_H
13 #define LYX_FUNCTIONAL_H
14
15 #ifdef LYX_USE_TR1
16
17 #include <functional>
18
19 #ifdef __GNUC__
20 #include <tr1/functional>
21 #endif
22
23 #define LYX_FUNCTIONAL_NS std::tr1
24
25 #elif __cplusplus >= 201103L
26
27 #include <functional>
28 #define LYX_FUNCTIONAL_NS std
29
30 #else
31
32 #include <boost/function.hpp>
33 #include <boost/functional.hpp>
34 #define LYX_FUNCTIONAL_NS boost
35
36 #endif
37
38 namespace lyx
39 {
40         using LYX_FUNCTIONAL_NS::function;
41 }
42
43 #undef LYX_FUNCTIONAL_NS
44
45
46 #endif