mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-22 00:32:53 +02:00
silences msvc warning when used with infinite sequences
[SVN r38211]
This commit is contained in:
@ -54,15 +54,15 @@ namespace boost { namespace fusion {
|
|||||||
template<typename Seq>
|
template<typename Seq>
|
||||||
struct result<seq_ref_size(Seq)>
|
struct result<seq_ref_size(Seq)>
|
||||||
{
|
{
|
||||||
static int const int_max = static_cast<int>(
|
static int const high_int = static_cast<int>(
|
||||||
static_cast<unsigned>(~0) >> 1);
|
(static_cast<unsigned>(~0) >> 1) - 1);
|
||||||
|
|
||||||
typedef typename remove_reference<Seq>::type SeqClass;
|
typedef typename remove_reference<Seq>::type SeqClass;
|
||||||
|
|
||||||
typedef typename mpl::eval_if<
|
typedef typename mpl::eval_if<
|
||||||
traits::is_forward<SeqClass>,
|
traits::is_forward<SeqClass>,
|
||||||
result_of::size<SeqClass>,
|
result_of::size<SeqClass>,
|
||||||
mpl::int_<int_max> >::type type;
|
mpl::int_<high_int> >::type type;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user