]> git.lyx.org Git - lyx.git/blob - src/support/bind.h
TR1: check in cmake for GCC version, fallback in checktr1.h for other build systems...
[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 "checktr1.h"
16
17
18 #ifdef LYX_USE_TR1
19
20 #include <functional>
21
22 #ifdef __GNUC__
23 #include <tr1/functional>
24 #endif
25
26 namespace lyx
27 {
28         using std::tr1::bind;
29         using std::tr1::placeholders::_1;
30         using std::tr1::placeholders::_2;
31         using std::tr1::ref;
32 }
33
34 #else
35
36 #include "boost/bind.hpp"
37
38 namespace lyx
39 {
40         using boost::bind;
41         using boost::ref;
42 }
43
44 #endif
45
46
47 #endif