Boost logo

Boost :

From: rwgk_at_[hidden]
Date: 2001-07-15 19:19:18


--- In boost_at_y..., rwgk_at_m... wrote:
> --- In boost_at_y..., "David Abrahams" <david.abrahams_at_r...> wrote:
> >
> > ----- Original Message -----
> > From: <rwgk_at_m...>
> > >
> > > Everything is fine, except for the vc60 warning messages that
are
> > > attached. I had similar messages before with my application code
> >
> > > cl.exe /I"C:\rwgk\richcmp\boost" /I"C:\Python21
\include"
> > > /nologo /MD /GR /GX /Zm200 /c richcmp.cpp
> > > richcmp.cpp
> > > C:\rwgk\richcmp\boost\boost/python/operators.hpp(80) : warning
> C4042:
> > > 'which' : has bad storage class
> >
> > <snip>

I found the trick (see comment):

BOOST_PYTHON_MODULE_INIT(richcmp)
{
  try {
    boost::python::module_builder this_module("richcmp");
    // The actual work is done in separate function in order
    // to suppress a bogus VC60 warning.
    init_module(this_module);
  }
  catch(...){boost::python::handle_exception();}
}

No warnings anymore, anywhere.
Ralf


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