mpl_v2 branch checkin

[SVN r15258]
This commit is contained in:
Dave Abrahams
2002-09-11 05:35:41 +00:00
parent 2c302ee549
commit 77c1698c6e

View File

@ -124,6 +124,7 @@
# include <boost/type.hpp>
# include <boost/static_assert.hpp>
# include <boost/type_traits.hpp>
# include <boost/type_traits/conversion_traits.hpp>
# include <boost/detail/iterator.hpp>
# include <boost/detail/select_type.hpp>
@ -1353,9 +1354,9 @@ namespace detail {
template <class Base, class T>
struct reduce_to_base_class
{
typedef typename if_true<(
::boost::is_convertible<T*,Base*>::value
)>::template then<Base,T>::type type;
BOOST_STATIC_CONSTANT(bool, convertible = (::boost::is_convertible<T*,Base*>::value));
typedef typename if_true<convertible
>::template then<Base,T>::type type;
};
// "Steps down" the category of iterators below bidirectional so the category