Boost logo

Boost :

From: Hartmut Kaiser (hartmutkaiser_at_[hidden])
Date: 2003-06-04 01:07:06


faisal vali wrote:

> Well i did manage to get it to compile by simply adding a
> primary template declaration for the policy class. <cringe>

Fine.

> It seemed to be behaving all right until i tried to
> preprocess the following (and i wonder if i caused this
> behavior by my above tinkering or whether this is truly
> standard behavior):
>
>
> #define C C
>
> #if C
> X()
> #endif
>
> Wave spits out that this is an ill-formed preprocessor expression -
>
> Is that true?
>
> >From my reading of the standard this should first get
> transformed into:
>
> #if 0
> X()
> #endif
>
>
> Can someone explain or confirm what the expected outcome
> should be, and whether it is my compilation of wave that is broken?

As Paul Mensonides already wrote, Wave shows clearly wrong behaviour
here.
This bug has been fixed. You can get the corrected version from the
Spirit CVS.

Thanks for reporting this problem.
Regards Hartmut


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