]> git.lyx.org Git - lyx.git/blob - src/support/functional.h
Use explicit macro to declare that we want to use C++11
[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_CXX11
16
17 #include <functional>
18 #define LYX_FUNCTIONAL_NS std
19
20 #else
21
22 #include <boost/function.hpp>
23 #include <boost/functional.hpp>
24 #define LYX_FUNCTIONAL_NS boost
25
26 #endif
27
28 namespace lyx
29 {
30         using LYX_FUNCTIONAL_NS::function;
31 }
32
33 #undef LYX_FUNCTIONAL_NS
34
35
36 #endif