/*-----------------------------------------------------------------------------+ Copyright (c) 2010-2010: 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) +-----------------------------------------------------------------------------*/ #ifndef BOOST_ICL_TYPE_TRAITS_INTERVAL_TYPE_DEFAULT_HPP_JOFA_100403 #define BOOST_ICL_TYPE_TRAITS_INTERVAL_TYPE_DEFAULT_HPP_JOFA_100403 #include #include #include #include #include #include #include #include #include #include namespace boost{ namespace icl { template struct interval_type_default { #ifdef BOOST_ICL_USE_STATIC_BOUNDED_INTERVALS typedef typename mpl::if_< is_discrete # ifdef BOOST_ICL_DISCRETE_STATIC_INTERVAL_DEFAULT , BOOST_ICL_DISCRETE_STATIC_INTERVAL_DEFAULT # else , right_open_interval # endif # ifdef BOOST_ICL_CONTINUOUS_STATIC_INTERVAL_DEFAULT , BOOST_ICL_CONTINUOUS_STATIC_INTERVAL_DEFAULT # else , right_open_interval # endif >::type type; #else typedef typename mpl::if_< is_discrete , discrete_interval , continuous_interval >::type type; #endif }; }} // namespace boost icl #endif