]> git.lyx.org Git - lyx.git/blob - src/support/bind.h
add generic helper class for calling functions in gui thread
[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 #ifdef LYX_USE_TR1
16
17 #include <functional>
18
19 #ifdef __GNUC__
20 #include <tr1/functional>
21 #endif
22
23 namespace lyx
24 {
25         using std::tr1::bind;
26         using std::tr1::placeholders::_1;
27         using std::tr1::placeholders::_2;
28         using std::tr1::ref;
29 }
30
31 #else
32
33 #include <boost/bind.hpp>
34
35 namespace lyx
36 {
37         using boost::bind;
38         using boost::ref;
39 }
40
41 #endif
42
43
44 #endif