X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2Fbind.h;h=1449c4394a7e6569b77138743d606700a97ac0b6;hb=b917c4e40f9f5cd3d101444600eddafcca54d6e3;hp=6d3d83e9ad6ca4a1720454263ebc1485f6e02cff;hpb=5b916eb7c512fb76187e230aa5127a834e5663fa;p=lyx.git diff --git a/src/support/bind.h b/src/support/bind.h index 6d3d83e9ad..1449c4394a 100644 --- a/src/support/bind.h +++ b/src/support/bind.h @@ -12,29 +12,32 @@ #ifndef LYX_BIND_H #define LYX_BIND_H -#if defined(_MSC_VER) && (_MSC_VER >= 1600) +#include "support/functional.h" -#include +#ifdef LYX_USE_CXX11 + +#define LYX_BIND_NS std namespace lyx { - using std::tr1::bind; - using std::tr1::placeholders::_1; - using std::tr1::placeholders::_2; - using std::tr1::ref; + using std::placeholders::_1; + using std::placeholders::_2; } #else -#include "boost/bind.hpp" +#include +#define LYX_BIND_NS boost + +#endif namespace lyx { - using boost::bind; - using boost::ref; + using LYX_BIND_NS::bind; + using LYX_BIND_NS::ref; } -#endif +#undef LYX_BIND_NS #endif