|
Boost : |
From: Eric Niebler (eric_at_[hidden])
Date: 2007-05-31 12:05:59
Larry Evans wrote:
> In:
>
> html/boost_proto/user_s_guide/extending_proto.html
>
> there's:
> <--------- cut here -----------
> namespace boost { namespace proto
> {
> // A specialization of generate<> that causes expression in the
> // calculator_domain to be wrapped in the calculator<> wrapper.
> template< typename Expr >
> struct generate< calculator_domain, Expr >
> {
> typedef calculator< Expr > type;
>
> static type make( Expr const & expr )
> {
> return type( expr );
> }
> };
> }}
>
> This instructs Proto to wrap all expressions in the calculator_domain in
> the calculator<> wrapper.
You are looking at out of date documentation. Get the latest docs --
this has been changed.
-- Eric Niebler Boost Consulting www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk