Boost logo

Boost :

Subject: Re: [boost] Official warnings policy?
From: Stewart, Robert (Robert.Stewart_at_[hidden])
Date: 2009-11-09 09:30:00

Phil Richards wrote:
> On Thu, 2009-11-05 at 20:03 -0800, Steven Watanabe wrote:
> > I've attached a patch that uses #pragma GCC system_header
> rom my understanding of this pragma, it turns off all
> warnings from the
> header. Maybe I'm being incredibly dumb, but isn't this a rather
> shotgun approach to the problem? What if, by some chance,
> the header is
> edited at some later stage and an issue is introduced that would have
> generated (valid) warnings?

It does so from the point in the file at which it appears to the end of the file. Thus, code could be arranged, including in a separate header, to localize the effect of that pragma.

> I'm not arguing one way or the other with regards this particular
> warning (or this particular header), but this pragma seems to be a
> particularly good way of introducing a delayed "shot in the foot" -
> probably for somebody else.

If applied too broadly, you're right.

Rob Stewart robert.stewart_at_[hidden]
Software Engineer, Core Software using std::disclaimer;
Susquehanna International Group, LLP

IMPORTANT: The information contained in this email and/or its attachments is confidential. If you are not the intended recipient, please notify the sender immediately by reply and immediately delete this message and all its attachments. Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an unintended recipient is strictly prohibited. Neither this message nor any attachment is intended as or should be construed as an offer, solicitation or recommendation to buy or sell any security or other financial instrument. Neither the sender, his or her employer nor any of their respective affiliates makes any warranties as to the completeness or accuracy of any of the information contained herein or that this message or any of its attachments is free of viruses.

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