X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2Fbind.h;h=efd3267de5ceb17667e94ed351b114d447ebf368;hb=faa87bf9f30b943397429a04254d96963bbf38bc;hp=2c636dce6de1d7486fad17c9ac8f1b4e1a114734;hpb=61b2bd5e7fd9399128342d9048aa814ae5f086fc;p=lyx.git diff --git a/src/support/bind.h b/src/support/bind.h index 2c636dce6d..efd3267de5 100644 --- a/src/support/bind.h +++ b/src/support/bind.h @@ -12,21 +12,27 @@ #ifndef LYX_BIND_H #define LYX_BIND_H -#if defined(_MSC_VER) && (_MSC_VER >= 1600) +#include "support/functional.h" -#include -using std::tr1::bind; -using std::tr1::placeholders::_1; -using std::tr1::placeholders::_2; -using std::tr1::ref; +#ifdef LYX_USE_TR1 + +namespace lyx +{ + using std::tr1::bind; + using std::tr1::placeholders::_1; + using std::tr1::placeholders::_2; + using std::tr1::ref; +} #else -#include "support/bind.h" -using boost::bind; -using boost::_1; -using boost::_2; -using boost::ref; +#include + +namespace lyx +{ + using boost::bind; + using boost::ref; +} #endif