25 Oct
2011
25 Oct
'11
2:31 p.m.
Daniel Bradburn
Hi,
I am trying to do the following:
#include <string>#include
#include #include int main(int argc, char* argv[]) { typedef boost::fusion::tuple<int> T1; typedef boost::fusion::result_of::push_back ::type T2; T1 a(0); T2 b(boost::fusion::push_back(a, std::string("")));
boost::fusion::get<0>();
fusion::joint_view, which is returned by fusion::push_back, does not implement the random access concept. Use fusion::front or fusion::deref x fusion::begin.
T1 c(boost::fusion::pop_back(b));
fusion::pop_back requires the sequence to be bidirectional. fusion::joint_view isn't.
return 0;
}
[...] Christopher