Boost logo

Boost :

Subject: [boost] [fusion] sequence member pointer
From: Daniel Larimer (dlarimer_at_[hidden])
Date: 2011-02-24 21:44:30


I am attempting to use a fusion sequence with a visitor pattern that expects 'member function' or 'member data' pointers.

What I would like to do is something like:

&fusion::vector<int,double>::m1

But obviously this cannot work because of how fusion::vector<int,double> is implemented with a single vector_n<...> vec data member that is private.

So trying to "reflect" a vector in the same way that I "reflect" a struct does not work.

Any good ideas? Is there any reason why this 'implementation detail' needs to be hidden?

Dan


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk