1 // is_evenly_divisible_by.hpp --------------------------------------------------------------//
3 // Copyright 2009-2010 Vicente J. Botet Escriba
5 // Distributed under the Boost Software License, Version 1.0.
6 // See http://www.boost.org/LICENSE_1_0.txt
8 #ifndef BOOST_CHRONO_DETAIL_NO_WARNING_SIGNED_UNSIGNED_CMP_HPP
9 #define BOOST_CHRONO_DETAIL_NO_WARNING_SIGNED_UNSIGNED_CMP_HPP
12 // We simply cannot include this header on gcc without getting copious warnings of the kind:
14 //../../../boost/chrono/detail/no_warning/signed_unsigned_cmp.hpp:37: warning: comparison between signed and unsigned integer expressions
16 // And yet there is no other reasonable implementation, so we declare this a system header
17 // to suppress these warnings.
20 #if defined(__GNUC__) && (__GNUC__ >= 4)
21 #pragma GCC system_header
22 #elif defined __SUNPRO_CC
24 #elif defined _MSC_VER
25 #pragma warning(push, 1)
32 template <class T, class U>
38 template <class T, class U>
48 #if defined __SUNPRO_CC
50 #elif defined _MSC_VER
54 #endif // BOOST_CHRONO_DETAIL_NO_WARNING_SIGNED_UNSIGNED_CMP_HPP