Boost logo

Boost :

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

On 10/17/17 18:59, Peter Dimov via Boost wrote:
> 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:
> foo
> 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.

This is QoI. Gcc does produce this message:

1.cpp:1:22: note: #pragma message: foo
  #pragma message("foo")

The source file and position are present in the message.

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