Boost logo

Boost :

Subject: Re: [boost] Standalone boost::ignore_unused_variable_warning()
From: Matt Calabrese (rivorus_at_[hidden])
Date: 2014-05-19 14:32:24

On Mon, May 19, 2014 at 6:58 AM, Adam Wulkiewicz

> Thanks for the suggestion!
> I also like the idea of a macro which could be put anywhere and only take
> types as parameters.
> There are some problems with the above example but this gave me an idea.
> The types could be passed as a parenthized list:
> then internally used e.g. to build some function type or just passed to the
> BOOST_MPL_ASSERT_MSG as the last parameter.

There is a subtle problem with this -- you can't necessarily guarantee that
forming a function type is valid. For instance, if one of your typedefs is
a void type, forming a function type with it as a parameter will fail.

-Matt Calabrese

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