Boost logo

Boost :

From: Lois Goldthwaite (loisg_at_[hidden])
Date: 2001-04-16 08:35:51

> --- In boost_at_y..., "Ed Brey" <brey_at_a...> wrote:
> > I recently tried upgrading my project's library to use the latest
> > version of smart_ptr, and unfortunately, the pragmas that were
> added to
> > suppress a spurious warning are triggering an internal compiler
> error on
> > VC6.5. VC claims the line causing the problem is operator* in
> > shared_ptr.
> >
> The same goes for VC6.4.
> Markus

I thought this sounded familiar, and I finally got around to looking it
up. Check out Q120968 and the online documentation for pragma warning:

> For warning numbers greater than 4699, those associated with code generation, the warning pragma has effect only when placed outside function definitions. The pragma is ignored if it specifies a number greater than 4699 and is used inside a function.

This talks about function scope rather than class scope, but I bet you
could put them anywhere at file scope, not just at beginning and end.


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