3 Dec
2017
3 Dec
'17
3:08 a.m.
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 appropriate.
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.