diff options
Diffstat (limited to 'std/bind.hpp')
-rw-r--r-- | std/bind.hpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/std/bind.hpp b/std/bind.hpp index 5968b26bd1..88a9e85cff 100644 --- a/std/bind.hpp +++ b/std/bind.hpp @@ -6,6 +6,20 @@ #undef new #endif +#if __cplusplus > 199711L + +#include <functional> +using std::bind; +using std::ref; +using std::cref; +using std::placeholders::_1; +using std::placeholders::_2; +using std::placeholders::_3; +using std::placeholders::_4; +using std::placeholders::_5; + +#else + #ifdef OMIM_OS_WINDOWS #define BOOST_BIND_ENABLE_STDCALL #endif @@ -15,6 +29,8 @@ using boost::bind; using boost::ref; using boost::cref; +#endif + #ifdef DEBUG_NEW #define new DEBUG_NEW #endif |