Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2001-07-08 07:34:49

----- Original Message -----
From: "Peter Dimov" <pdimov_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Sunday, July 08, 2001 8:00 AM
Subject: Re: [boost] Coding guidelines - noncopyable

> From: "Aleksey Gurtovoy" <alexy_at_[hidden]>

> > A better way to suppress them is to write "#pragma warning(disable: 4511
> > 4512)" :). Personally, I think that the above warning is useless. You'll
> > find out that "assignment operator could not be generated" as soon as
> > try to use one. Warning about it at the point of class definition is
> > shouting "you can't walk into this door!" to every person who just
> happened
> > to walk down the corridor ;).
> I (almost) never impose my opinion of whether a warning is useful or not
> users, when I can avoid it.

If you are intent on that, there is always

#pragma warning(push)
#pragma warning(disable: 4511 4512)
#pragma warning(pop)

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