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/type_traits.hpp')
-rw-r--r--std/type_traits.hpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/std/type_traits.hpp b/std/type_traits.hpp
index 15016924fc..769bbf22a6 100644
--- a/std/type_traits.hpp
+++ b/std/type_traits.hpp
@@ -1,17 +1,31 @@
#pragma once
#include "common_defines.hpp"
+#include "target_os.hpp"
#ifdef new
#undef new
#endif
+#ifdef OMIM_OS_MAC
+// http://stackoverflow.com/questions/8173620/c-boost-1-48-type-traits-and-cocoa-inclusion-weirdness
+// Cocoa defines "check" macros as is. It breaks compilation of boost/type_traits.
+#ifdef check
+#undef check
+#endif
+#endif
+
#include <boost/type_traits.hpp>
+#include <boost/utility/enable_if.hpp>
+
+using boost::enable_if;
+
using boost::is_same;
using boost::make_signed;
using boost::make_unsigned;
using boost::is_signed;
using boost::is_unsigned;
using boost::is_floating_point;
+using boost::is_integral;
#ifdef DEBUG_NEW
#define new DEBUG_NEW