Boost logo

Boost :

From: John Maddock (john_at_[hidden])
Date: 2007-08-10 11:16:46


Andreas Huber wrote:
> Steven Watanabe <watanabesj <at> gmail.com> writes:
>> ./boost/statechart/detail/rtti_policy.hpp
>> ./boost/statechart/detail/state_base.hpp
>> ./boost/statechart/state_machine.hpp
>
> All disabled warnings carry the following comment:
>
> // We permanently turn off the following level 4 warnings because
> users will // have to do so themselves anyway if we turn them back on
>
> The warnings in question are:
>
> # pragma warning( disable: 4511 ) // copy constructor could not be
> generated # pragma warning( disable: 4512 ) // assignment op could
> not be generated
>
> IMO, these warnings are not very useful. Users will get heaps of them
> when they employ the library, so disabling them permanently is a good
> thing.

I agree that they're useless, but I believe they'll still get suppressed for
any instances of your templates that are instantiated if there is a matching
#pragma warning(pop).

John.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk