Boost logo

Boost :

From: Martin Bonner (Martin.Bonner_at_[hidden])
Date: 2008-03-25 17:16:45

(Sorry, Outlook webmail forces crappy indendation)


From: boost-bounces_at_[hidden] on behalf of Niels Dekker - mail address until 2008-12-31
Sent: Tue 25/03/2008 20:44
To: boost_at_[hidden]
Subject: Re: [boost] 1704 [any] 4512 warning from VC8/9 on warning level 4

FWIW, yes, I also build my applications at MSVC warning level 4. But in
this particular case, I don't think that this specific warning needs to
be pragma'd off! The warning reported by ticket #1704 says:
  "boost/any.hpp(130) : warning C4512: 'boost::any::holder<ValueType>' :
assignment operator could not be generated"

MJB>> This is one of the warning that I tend to pragma off globally.

Wouldn't it be preferable to explicitly disallow the assignment of

MJB>> I bet it already is

Just by adding a private and unimplemented copy assignment
operator? When doing so, we'll get rid of the warning automatically.

MJB>> But that's not the way to explicitly disallow assignment. Instead you derive from boost::non_copyable (sp?). And that causes the warning

Martin Bonner

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