3 Sep
2013
3 Sep
'13
10:09 a.m.
2013/9/3 niXman
Hi,
Why 'type' is not same as 'expected' in the example below?
Because 'push_back' returns you a 'view'.
using origin = boost::fusion::map< boost::fusion::pair
; using expected = boost::fusion::map< boost::fusion::pair
,boost::fusion::pair ; using type = boost::fusion::result_of::push_back< origin ,boost::fusion::pair
::type;
static_assert(std::is_same
::value, "error!"); The second question is, how can I get the same type as 'expected' when using 'result_of::push_back<>::type' ?
Try 'as_map' HTH