mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-30 04:27:30 +02:00
Add double identity trick for fast value_at (vectors)
This is a workaround to make decltype(expr)::type compiles with old compilers.
This commit is contained in:
@ -47,7 +47,7 @@ namespace boost { namespace fusion
|
|||||||
struct apply
|
struct apply
|
||||||
{
|
{
|
||||||
typedef typename boost::remove_cv<Sequence>::type seq;
|
typedef typename boost::remove_cv<Sequence>::type seq;
|
||||||
typedef typename decltype(seq::template value_at_impl<N::value>(boost::declval<seq*>()))::type type;
|
typedef typename mpl::identity<decltype(seq::template value_at_impl<N::value>(boost::declval<seq*>()))>::type::type type;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user