Boost logo

Boost Users :

Subject: [Boost-users] [fusion] making an inner struct boost fusion compatible?
From: Oswin Krause (Oswin.Krause_at_[hidden])
Date: 2012-09-20 04:29:59


Hi list,

I have the following problem:

template<class T, class U, class V>
struct MyType{
     struct nested{
         typename MetaFunc<T>::type a;
         typename MetaFunc<U>::type b;
         typename MetaFunc<V>::type c;
     };
};

now this inner struct must be a boost fusion compatible random access
sequence. The examples cover only structs on namespace lvel, how can i
handle this way? Later these classes will be generated by a macro
automatically so even dirty hacks are allowed :). But i don't want to
clatter the namespace by pulling nested outside of the class.

Is there an easy way or do i have to write the necessary mtafunctions
to make this possible?

Greetings,
Oswin


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