|
Boost Users : |
Subject: Re: [Boost-users] [Preprocessor] MSVC nonstandard macro expansion workaround?
From: Lorenzo Trivelli (trivelli.lorenzo_at_[hidden])
Date: 2016-03-04 09:08:47
> The general problem you are encountering in the VC++ preprocessor is
> that it often re-scans macro expansion when it should not be doing so
> according to the preprocessor rules of standard C++. I give a simple
> example of this in my VMD library doc.
>
> Needless to say the VC++ preprocessor has never been a standard C++
> conforming preprocessor. What's worse is that Microsoft has never
> provided a tool which shows what the VC++ preprocessor is actually
> doing when it expands a macro, but of course if it ever had it would
> have clearly showed the ways in which it was not C++ standard
> compliant, therefore embarassing Microsoft.
I'm not a boost preprocessor expert, but you should give a try to /E (or
/P) cl command line arguments which (at least in VS2005 :-D )
shows the pre-processed output, maybe it can give you a hint on where
the trouble is
Lorenzo
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