Boost logo

Boost Users :

Subject: Re: [Boost-users] BOOST_FUSION_ADAPT_STRUCT: non intrusive macro, get a fusion sequence of struct member types and member names
From: Hicham Mouline (hicham_at_[hidden])
Date: 2010-01-26 23:50:24


----- Original Message -----
From: "Dominique Devienne" <ddevienne_at_[hidden]>
To: <boost-users_at_[hidden]>
Sent: Tuesday, January 26, 2010 12:58 AM
Subject: Re: [Boost-users] BOOST_FUSION_ADAPT_STRUCT: non intrusive
macro,get a fusion sequence of struct member types and member names

> On Mon, Jan 25, 2010 at 4:54 AM, joel falcou <joel.falcou_at_[hidden]> wrote:
>> name will obviously be char* and you can't have that in a template
>> parameter.
>
> Unless using mpl::string, no? Not sure it's possible to generate
> mpl::string<'foob','ar'> from "foobar" passed to the macro though.
> --DD

Then we could have metafunctions

template <int N, typename Sequence>
struct name_at_c {
  typedef <undefined> type; // this would be a mpl::string
};

this would be at compile time.

rds,


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