]> git.lyx.org Git - lyx.git/blob - src/support/bind.h
Merge remote-tracking branch 'features/scroll-reloaded'
[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 #if __cplusplus >= 201103L
18
19 #define LYX_BIND_NS std
20
21 namespace lyx
22 {
23         using std::placeholders::_1;
24         using std::placeholders::_2;
25 }
26
27 #else
28
29 #include <boost/bind.hpp>
30 #define LYX_BIND_NS boost
31
32 #endif
33
34 namespace lyx
35 {
36         using LYX_BIND_NS::bind;
37         using LYX_BIND_NS::ref;
38 }
39
40 #undef LYX_BIND_NS
41
42
43 #endif