mirror of
https://github.com/boostorg/iterator.git
synced 2025-07-22 00:52:08 +02:00
Work around an MSVC-stlport ICE
[SVN r24567]
This commit is contained in:
@ -24,6 +24,10 @@ template <bool GreaterEqual, bool LessEqual>
|
||||
struct minimum_category_impl
|
||||
# if BOOST_WORKAROUND(BOOST_MSVC, == 1200)
|
||||
{
|
||||
template <class T1, class T2> struct apply
|
||||
{
|
||||
typedef T2 type;
|
||||
};
|
||||
typedef void type;
|
||||
}
|
||||
# endif
|
||||
@ -82,7 +86,7 @@ struct minimum_category
|
||||
|| is_same<T1,int>::value
|
||||
# endif
|
||||
> outer;
|
||||
|
||||
|
||||
typedef typename outer::template apply<T1,T2> inner;
|
||||
typedef typename inner::type type;
|
||||
|
||||
@ -96,7 +100,7 @@ struct minimum_category<mpl::_1,mpl::_2>
|
||||
struct apply : minimum_category<T1,T2>
|
||||
{};
|
||||
};
|
||||
|
||||
|
||||
# if BOOST_WORKAROUND(BOOST_MSVC, == 1200) // ETI workaround
|
||||
template <>
|
||||
struct minimum_category<int,int>
|
||||
@ -104,7 +108,7 @@ struct minimum_category<int,int>
|
||||
typedef int type;
|
||||
};
|
||||
# endif
|
||||
|
||||
|
||||
}} // namespace boost::detail
|
||||
|
||||
#endif // MINIMUM_CATEGORY_DWA20031119_HPP
|
||||
|
Reference in New Issue
Block a user