Fixed C++11 implementation of map's result_of::deref_data to return a

reference as expected.
This commit is contained in:
Joel de Guzman
2014-11-18 23:11:13 +08:00
parent 68b4683e95
commit 0f34b3a692
3 changed files with 18 additions and 8 deletions

View File

@ -83,8 +83,10 @@ namespace boost { namespace fusion
{
typedef typename Iterator::sequence sequence;
typedef typename Iterator::index index;
typedef
decltype(boost::declval<sequence>().get(index()).second)
typedef typename
add_reference<
decltype(boost::declval<sequence>().get(index()).second)
>::type
type;
BOOST_FUSION_GPU_ENABLED