Subject: Re: [boost] BOOST_PRAGMA_MESSAGE?
From: Edward Diener (eldiener_at_[hidden])
Date: 2017-12-03 03:08:51
On 12/2/2017 5:09 PM, Peter Dimov via Boost wrote:
> Edward Diener wrote:
>> > Use:
>> > BOOST_PRAGMA_MESSAGE( "something" )
>> Shouldn't this be:
>> BOOST_PRAGMA_MESSAGE( something )
> Maybe. Should it be?
> #pragma message does take a quoted string:
> Â Â #pragma message( "something" )
> as opposed to #warning, which doesn't:
> Â Â #warning something
> Since the macro is called PRAGMA_MESSAGE, a quoted string seemed more
The BOOST_PRAGMA_MESSAGE which you showed expands its parameter to a
quoted string by the eventual use of the # as the stringizing operator
in the macro expansion.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk