Boost logo

Boost :

Subject: Re: [boost] [msvc] #warning preprocessor directive
From: Peter Dimov (lists_at_[hidden])
Date: 2017-10-17 15:59:29

Robert Ramey wrote:
> personally I don't see any difference between #warning and the already
> existing and portable #pragma message - which is what I use on a regular
> basis.

`#pragma message("foo")` results in the following output:


and shows nothing in the IDE warning list. So you either don't see it, or if
you do, you have no clue where did it come from.

`#warning foo` would result in the following output:

source_file(source_line): warning C7563: #warning foo

which would then be shown as a warning in the IDE.

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