Boost logo

Boost :

Subject: Re: [boost] Standalone boost::ignore_unused_variable_warning()
From: Rob Stewart (robertstewart_at_[hidden])
Date: 2014-05-19 20:24:03


On May 19, 2014 11:07:19 AM EDT, Peter Dimov <lists_at_[hidden]> wrote:
>Adam Wulkiewicz wrote:

>> The types could be passed as a parenthized list:
>>
>> BOOST_IGNORE_UNUSED_TYPEDEF_WARNING((T1, T2, T3));
[snip]
>> So as a reminder the other approach is:
>> ignore_unused_typedef_warning<T1, T2, T3>();
>
>I'm in favor of
> BOOST_IGNORE_UNUSED_TYPEDEF( T1 )
> BOOST_IGNORE_UNUSED_TYPEDEFS(( T1, T2, T3 ))
>
>A macro would allow us to vary the implementation in the appropriate
>compiler-specific way, or to omit it altogether on compilers that do
>not warn.

+1

Macros for unused variables would provide consistency and give similar implementation flexibility, though the latter might be unwarranted.

___
Rob

(Sent from my portable computation engine)


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk