Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:29:46

0001 //  is_evenly_divisible_by.hpp  --------------------------------------------------------------//
0002 
0003 //  Copyright 2009-2010 Vicente J. Botet Escriba
0004 
0005 //  Distributed under the Boost Software License, Version 1.0.
0006 //  See http://www.boost.org/LICENSE_1_0.txt
0007 
0008 #ifndef BOOST_CHRONO_DETAIL_NO_WARNING_SIGNED_UNSIGNED_CMP_HPP
0009 #define BOOST_CHRONO_DETAIL_NO_WARNING_SIGNED_UNSIGNED_CMP_HPP
0010 
0011 //
0012 // We simply cannot include this header on gcc without getting copious warnings of the kind:
0013 //
0014 //../../../boost/chrono/detail/no_warning/signed_unsigned_cmp.hpp:37: warning: comparison between signed and unsigned integer expressions
0015 //
0016 // And yet there is no other reasonable implementation, so we declare this a system header
0017 // to suppress these warnings.
0018 //
0019 
0020 #if defined(__GNUC__) && (__GNUC__ >= 4)
0021 #pragma GCC system_header
0022 #elif defined __SUNPRO_CC
0023 #pragma disable_warn
0024 #elif defined _MSC_VER
0025 #pragma warning(push, 1)
0026 #endif
0027 
0028 namespace boost {
0029 namespace chrono {
0030 namespace detail {
0031 
0032   template <class T, class U>
0033   bool lt(T t, U u)
0034   {
0035     return t < u;
0036   }
0037 
0038   template <class T, class U>
0039   bool gt(T t, U u)
0040   {
0041     return t > u;
0042   }
0043 
0044 } // namespace detail
0045 } // namespace detail
0046 } // namespace chrono
0047 
0048 #if defined __SUNPRO_CC
0049 #pragma enable_warn
0050 #elif defined _MSC_VER
0051 #pragma warning(pop)
0052 #endif
0053 
0054 #endif // BOOST_CHRONO_DETAIL_NO_WARNING_SIGNED_UNSIGNED_CMP_HPP