Welcome to mirror list, hosted at ThFree Co, Russian Federation.

bind.hpp « std - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 07c5abfc544277cae64260a2b51fd786281fa3fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#pragma once
#include "common_defines.hpp"
#include "target_os.hpp"

#ifdef new
#undef new
#endif

#if (__cplusplus > 199711L) || defined(__GXX_EXPERIMENTAL_CXX0X__)

#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

#include <boost/bind.hpp>
using boost::bind;
using boost::ref;
using boost::cref;

#endif

#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif