Boost logo

Boost :

Subject: Re: [boost] [proto] small breaking change
From: joel falcou (joel.falcou_at_[hidden])
Date: 2010-06-09 09:41:46


Eric Niebler wrote:
> You typically don't inherit from Proto's expression types; you use
> proto::extends or BOOST_PROTO_(BASIC_)EXTENDS. And if you do that, then
> the Proto expression you're extending is just a tuple data member that
> holds the child nodes. It doesn't need any fancy member functions.
>
Yeah, thongue slipped
> If you're using proto::extends or BOOST_PROTO_EXTENDS (or
> BOOST_PROTO_BASIC_EXTENDS with BOOST_PROTO_EXTENDS_ASSIGN), then you'll
> have the right overloaded assignment operator regardless of whether
> you're extending expr or basic_expr
OK so I just continue doing w/e I am doing at the moment.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk