Boost logo

Boost :

Subject: Re: [boost] [preprocessor] Sequences vs. All Other Data Structures
From: Stephan T. Lavavej (stl_at_[hidden])
Date: 2012-04-24 00:22:07

[Paul Mensonides]
> It isn't that. VC++ doesn't even implement the preprocessor correctly for
> C89. Essentially, the macro expansion algorithm appears to be
> fundamentally broken. One small example:
> #define A() 123
> #define B() ()
> A B() // should expand to A() (and does)
> #define C() A B()
> C() // should *still* expand to A() (but instead expands to 123)

I have filed this as DevDiv#407151 "VC's preprocessor considered harmful (to Boost.Preprocessor)" in our internal database, including a copy of your entire mail.

If it were within my power to fix this for you, I would - but I am not a compiler dev.

Stephan T. Lavavej
Visual C++ Libraries Developer

Boost list run by bdawes at, gregod at, cpdaniel at, john at