11 Nov
2008
11 Nov
'08
5:26 p.m.
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... -- Eric Niebler BoostPro Computing http://www.boostpro.com