
Steven Watanabe wrote:
AMDG
Martin Apel <martin.apel <at> simpack.de> writes:
I still had no luck getting this to work. It seems that the typedef for the joint map is OK (I had to change the insert to use a third parameter as follows:
typedef copy< joint_view<Map1,Map2>, inserter <map0<>, insert<_1, end<_1>::type, _2> >
::type JointMap;
otherwise it wouldn't compile). However as soon as I try to access the result using
std::cout << at<JointMap, int_<2> >::type::value << "\n";
I got tons of compile errors, from at_impl.hpp like the following: <snip>
try
typedef copy< joint_view<Map1,Map2>, inserter <map0<>, insert<_1, end<_1>, _2> >
::type JointMap;
In Christ, Steven Watanabe
Sorry for the long delay. I was lucky to have a bank holiday yesterday here in southern Germany :-) I tried your minor correction. However it still gives me the same compile errors when instantiating "at": /usr/include/boost/mpl/next_prior.hpp:31: error: no type named `next' in `struct mpl_::void_' /usr/include/boost/mpl/aux_/at_impl.hpp:35: error: no type named `type' in `struct boost::mpl::advance<mpl_::void_, mpl_::int_<2> >' The line causing this looks as follows: std::cout << at<JointMap, int_<2> >::type::value << "\n"; Best Regards, Martin ____________ Virus checked: AVKA 17.384 from 14.08.2007