Boost logo

Boost Users :

Subject: Re: [Boost-users] proto user guide e.g.
From: Eric Niebler (eric_at_[hidden])
Date: 2009-02-23 14:58:06


Hicham Mouline wrote:
> Hi, continuing to work through the user guide
> boost_1_38_0/doc/html/proto/users_guide.html,
> I reached the section Retaining POD-ness with BOOST_PROTO_EXTENDS()
<snip>
>
> // Define a calculator domain. Expression within
> // the calculator domain will be wrapped in the
> // calculator<> expression wrapper.
> struct calculator_domain
> : proto::domain< proto::generator<calculator> >
---------------------------^^^^^^^^^^

Should be proto::pod_generator<calculator>. Once you finish reading the
section, you'll know why. :-)

-- 
Eric Niebler
BoostPro Computing
http://www.boostpro.com

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net