Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-04-13 08:21:57


From: "Richard Crossley" <rdc_at_[hidden]>
> > > The version of ref.hpp currently in cvs fails under VC7 with the
> > > following code:
> > >
> > > #include <boost/ref.hpp>
> > >
> > > struct X{
> > > enum E{v};
> > > void func()
> > > {
> > > E e = v;
> > > boost::ref(e); // line 8
> > > }
> > > };
> >
> > We might have to disable the use of addressof() in ref for VC7 (is VC6
> > also
> > affected?), then, unless someone sees a workaround?
> >
> > Doug
>
> Fails identically with VC6.

Fixed. ref() no longer uses addressof() on VC6. Removed the 'inline' on
addressof to fix VC 7 (and above ;-) ).


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