diff options
author | vng <viktor.govako@gmail.com> | 2014-08-29 16:50:21 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:25:48 +0300 |
commit | e226b0dd6fe9f89dc30d1cd488efbd0c71cc4a13 (patch) | |
tree | e1b2c500371e54d00aae86728b2ed1434fd2d9c3 /std | |
parent | 51a488a6bb0327f63653c1e02a913cff62dc779f (diff) |
Avoid code duplicating.
Diffstat (limited to 'std')
-rw-r--r-- | std/type_traits.hpp | 14 |
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 |