8 Dec
2007
8 Dec
'07
7:07 p.m.
AJD wrote:
Thanks, this works great. The only problem is that vector<> is intended as a wrapper class, and I just implemented it as an array for convenience in this example. It could have any underlying type, not necessarily an array. Is there a proper way to do this without exposing vector<>'s underlying type?
I'm confused. So your vector2<> type is intended as a wrapper for any
kind of terminal, not arrays? So how is your example different than any
of the examples in proto's docs? Have you tried using proto::extends<>
(or BOOST_PROTO_EXTENDS) to extend terminal<T>::type instead of
terminal