Boost logo

Boost :

From: Eric Niebler (eric_at_[hidden])
Date: 2008-03-19 12:29:50


Say I have a struct D that derives from B, like:

struct B { int i1; }
struct D : B { int i2; }

I can adapt B to be a Fusion sequence with:

BOOST_FUSION_ADAPT_STRUCT(B, (int, i1))

Now I want to adapt D. Do I have to enumerate B's members again, or is
there a way to express the inheritance relationship so that it Just Works?

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