Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10686: Boost.Preprocessor VARIADICS and VARIADICS_MSVC defined incorrectly under MSVC12
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-11-04 14:53:09
#10686: Boost.Preprocessor VARIADICS and VARIADICS_MSVC defined incorrectly under
MSVC12
-------------------------------+---------------------------
Reporter: iFreilicht | Owner: no-maintainer
Type: Bugs | Status: new
Milestone: To Be Determined | Component: preprocessor
Version: Boost 1.54.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+---------------------------
Comment (by iFreilicht):
That is correct, it is not documented.
I'm sorry, I'm only talking about VisualStudio 2013 and VC++ 2013. From my
knowledge it has the version number 12, that's why I called it that.
I have made a minimal case and it seems like `__EDG__` is only defined
under the IntelliSense compiler for what ever reason.
{{{
#if __EDG__
#error __EDG__ is defined
#endif
}}}
This code will throw no error upon compilation, but IntelliSense shows it
as getting reached and `__EDG__` as being defined. Thus, compilation
behaviour is not touched by this bug.
Also, after taking a closer look at preprocessor/config.hpp, there seems
to be awareness for this.
In lines 34-39, it is first checked if `__EDG__` is defined and then
`_MSC_VER`. If they both are, the MSVC config flags are set as the result
of `BOOST_PP_CONFIG_FLAGS`.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10686#comment:3> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:17 UTC