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

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'std/function.hpp')
-rw-r--r--std/function.hpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/std/function.hpp b/std/function.hpp
index 924b3a7b07..ca461298d5 100644
--- a/std/function.hpp
+++ b/std/function.hpp
@@ -5,8 +5,17 @@
#undef new
#endif
-#include <boost/function.hpp>
-using boost::function;
+#if __cplusplus > 199711L
+
+ #include <functional>
+ using std::function;
+
+#else
+
+ #include <boost/function.hpp>
+ using boost::function;
+
+#endif
#ifdef DEBUG_NEW
#define new DEBUG_NEW