metafunction to 'rangify'

Hi,
struct inputs {
double input1;
int input2;
bool input3;
};
Given type 'inputs', how to I write a metafunction that can return to me
this type:
rangify<inputs>::type identical to
struct inputs_rangified {
union { double fixed; boost::tuple

-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users- bounces@lists.boost.org] On Behalf Of Mathias Gaunard Sent: 18 December 2009 22:51 To: boost-users@lists.boost.org Subject: Re: [Boost-users] metafunction to 'rangify'
Hicham Mouline wrote:
1. Is it possible to get the number of members of a struct at compile- time?
No. How about if I explicitly set a const static size_t number_of_members = ...; inside inputs?
would then the previously mentioned desired outcome be possible with Boost.fusion? Regards,
participants (3)
-
Edward Diener
-
Hicham Mouline
-
Mathias Gaunard