]> git.lyx.org Git - lyx.git/blob - src/support/bind.h
1931b163ec2f140a2ef7398031928a111811ebee
[lyx.git] / src / support / bind.h
1 // -*- C++ -*-
2 /**
3  * \file bind.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_BIND_H
13 #define LYX_BIND_H
14
15 #include "support/functional.h"
16
17 #ifdef LYX_USE_TR1
18
19 #define LYX_BIND_NS std::tr1
20
21 namespace lyx
22 {
23         using std::tr1::placeholders::_1;
24         using std::tr1::placeholders::_2;
25 }
26
27 #elif __cplusplus >= 201103L
28
29 #define LYX_BIND_NS std
30
31 namespace lyx
32 {
33         using std::placeholders::_1;
34         using std::placeholders::_2;
35 }
36
37 #else
38
39 #include <boost/bind.hpp>
40 #define LYX_BIND_NS boost
41
42 #endif
43
44 namespace lyx
45 {
46         using LYX_BIND_NS::bind;
47         using LYX_BIND_NS::ref;
48 }
49
50 #undef LYX_BIND_NS
51
52
53 #endif