Boost logo

Boost Users :

Subject: Re: [Boost-users] [Proto] terminal class acting as Pod
From: Eric Niebler (eric_at_[hidden])
Date: 2008-11-11 12:26:16


Joel Falcou wrote:
> I remember seeing a example code where terminal where treated as POD
> thanks to some macro.
> basically, if i have a foo_expr in a foo_domain, how can I build a
> special terminal class which acts as a POD
> if foo_expr is generated using pod_generator so I can write stuff like :
>
> foo x = { ... soem value };
>
> where foo is a terminal extending foo_expr

Is BOOST_PROTO_EXTENDS what you're looking for?

http://boost-sandbox.sourceforge.net/libs/proto/doc/html/BOOST_PROTO_EXTENDS.html

-- 
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