Boost logo

Boost Users :

Subject: Re: [Boost-users] [scope_exit] 1.57 MSVC C4003 warning
From: Edward Diener (eldiener_at_[hidden])
Date: 2014-11-10 14:08:47


On 11/10/2014 4:05 AM, Filip Konvička wrote:
>> This is a result of an update I made to Boost PP for VC++ to handle
>> possibly "empty" tuples, which fixes a corner case error in the VC++
>> non-standard conforming preprocessor. The warning is benign, but I have
>> found no way to turn it off at the Boost PP level.
>>
>> A possible workaround for the next release, which I will try, is to
>> duplicate BOOST_PP_EXPAND under a different internal name and use that
>> duplicated macro internally and see if I can turn off the warning there.
>> Unfortunately if I surround the invocation of the currently internal use
>> of BOOST_PP_EXPAND with the appropriate #pragma to disable the warning
>> VC++ ignores it.
>
> Thanks Edward. At least I know it's not in our code.
> So I assume that for now it's best to disable the warning at the top
> level if we want to get rid of it.

Yes. This appears the only way to disable it.

If I find some way to disable it at the Boost PP level I will do it, but
it does not appear to be possible.


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