
Hi David, I wasn't trying to add elements to a joint view. I am trying to make a joint sequence of two other sequences. I first tried to obtain that from joint_view but when that failed I tried using push_back to push each element of the second sequence at the end of the first one. I thought about trying mpl::copy but I am not sure if that is implemented either... Thanks -delfin -----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of David Abrahams Sent: Monday, July 19, 2004 7:55 PM To: boost-users@lists.boost.org Subject: [Boost-users] Re: Mpl problem "Arkadiy Vertleyb" <vertleyb@hotmail.com> writes:
"Delfin Rojas" <drojas@moodlogic.com> wrote
I am having a problem with the mpl library and I wonder if someone could help me with it. Basically I am trying to get a joint_view of two mpl::vector types and I get an error message on mpl/clear.hpp saying
clear_traits< Tag > ::template algorithm< Sequence >
base class undefined.
I tried including several of the mpl hpp files, the ones that seemed could have something to do with this problem but that didn't help. I also get a similar problem trying to use mpl::push_back. In this case I get
push_back_traits< Tag > ::template algorithm< Sequence,T >
Base class undefined.
On the other hand mpl::push_front and mpl::insert compile beautifully.
The error messages you are getting basically say:
"This algorithm is undefined for this type of sequence."
Exactly. Like all other views, joint_view is not extensible. How could you push_back onto a view, anyway? push_back is supposed to return the same "kind" of sequence as its input, but you can't add an element to a joint_view. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users