diff options
author | Alex Zolotarev <alex@mapswithme.com> | 2014-08-06 00:31:02 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:23:42 +0300 |
commit | a43d4251fd32b88569884ca41d4ba22e3de8b045 (patch) | |
tree | f93e85a40fa718a54b5fe58e5bfef7110b237048 /std/bind.hpp | |
parent | 63c2234ba46f95020f158a440dc675c8b6e16c0a (diff) |
Base libraries C++11 sources compatibility
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 |