Boost logo

Boost :

Subject: Re: [boost] [msvc] #warning preprocessor directive
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2017-10-17 12:27:26

On 10/17/17 15:10, Beman Dawes via Boost wrote:
> I find it very irritating that VC++ does not support #warning, and have
> opened a feature request:
> The last time #warning was suggested it was rejected because not enough
> people voted for it. So please consider upvoting it on the above link.
> The lack of #warning affects Boost libraries in that developers avoid
> otherwise useful warnings because of the hassle for using an extension not
> supported by VC++.

#warning would be a non-standard preprocessor directive. I don't think
such a non-standard extension is justified given that other compilers
don't support it and that there is a more portable alternative "#pragma

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