/*-----------------------------------------------------------------------------+ Copyright (c) 2008-2009: Joachim Faulhaber +------------------------------------------------------------------------------+ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENCE.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +-----------------------------------------------------------------------------*/ /*------------------------------------------------------------------------------ itl_rational provides adapter code for boost::rational. ------------------------------------------------------------------------------*/ #ifndef BOOST_ICL_RATIONAL_HPP_JOFA_080913 #define BOOST_ICL_RATIONAL_HPP_JOFA_080913 #include // For BOOST_MSVC and more #ifdef BOOST_MSVC #pragma warning(push) #pragma warning(disable:4127) // conditional expression is constant #pragma warning(disable:4512) // 'boost::detail::resetter' : assignment operator could not be generated #pragma warning(disable:4800) // 'unsigned int' : forcing value to bool 'true' or 'false' (performance warning) #endif #include #ifdef BOOST_MSVC #pragma warning(pop) #endif #include #include #include namespace boost{namespace icl { template struct is_numeric > { typedef is_numeric type; BOOST_STATIC_CONSTANT(bool, value = true); }; template struct is_continuous > { typedef is_continuous type; BOOST_STATIC_CONSTANT(bool, value = true); }; template struct is_discrete > { typedef is_discrete type; BOOST_STATIC_CONSTANT(bool, value = false); }; template struct has_inverse > { typedef has_inverse type; BOOST_STATIC_CONSTANT(bool, value = (boost::is_signed::value)); }; }} // namespace icl boost #endif