Boost logo

Boost Users :

Subject: Re: [Boost-users] PP: BOOST_PP_CAT concatenate an argument with a whitespace
From: Hicham Mouline (hicham_at_[hidden])
Date: 2010-02-06 12:36:41


> -----Original Message-----
> From: boost-users-bounces_at_[hidden] [mailto:boost-users-
> bounces_at_[hidden]] On Behalf Of Daniel James
> Sent: 06 February 2010 17:27
> To: boost-users_at_[hidden]
> Subject: Re: [Boost-users] PP: BOOST_PP_CAT concatenate an argument with
> a whitespace
>
> On 6 February 2010 17:13, Hicham Mouline <hicham_at_[hidden]> wrote:
> > Hi,
> >
> > BOOST_PP_CAT( MACRO1, MACRO2 );
> >
> > MACRO1 expands to double
> > MACRO2 expands to x
> >
> > BOOST_PP_CAT( MACRO1, MACRO2 ); therefore expands to        doublex;
> >
> > I am trying to get the statement
> >
> > double x;
>
> Can't you just write MACRO1 MACRO2?
>
> Daniel
Yes, the BOOST_PP_CAT was inside a BOOST_PP_IF so it confused as to whether
just writing the space there would work.
It did.

Thanks,


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