Boost logo

Boost :

Subject: Re: [boost] MSVC warnings for BOOST_PP_IS_EMPTY in Boost.Phoenix
From: Damien Buhl (damien.buhl_at_[hidden])
Date: 2015-03-11 03:29:53

On 11/03/2015 08:18, Andrey Semashev wrote:
> On Wed, Mar 11, 2015 at 10:11 AM, Damien Buhl <damien.buhl_at_[hidden]> wrote:
>> // Without BOOST_PP_VARIADICS support :
>> demo::employee,
>> )
>> Both signatures works on BOOST_PP_VARIADICS enabled compilers. Actually
> Perhaps, 'auto' would be shorter?
> demo::employee,
> (auto, name)
> (auto, age)
> )
> It also looks kind of similar to C++14 lambdas.
That looks nice, and it may be great, but I'm a bit concerned in giving
a slight different meaning than the official one to a standard keyword.

>> So I will change BOOST_FUSION_ADAPT_AUTO to some constant other than
>> emptiness and check if it equals. These should not provide any warning
>> anymore even on VC++ 8.0.
>> I should be able to have a fix this evening.
> Thanks. I currently disabled the warning locally in Boost.Log but I'd
> rather not have to do that. It also doesn't fix warnings in users'
> code.

Thanks for the temporary fix. I'll do my best to avoid these warnings.

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