[C++-sig] Re: problem with overloaded address operator
David Abrahams
dave at boost-consulting.com
Fri Nov 26 17:12:55 CET 2004
"Fred Houben" <qhf at oce.nl> writes:
> I solved the problem by editing pointer_holder.hpp. Replacing Value*
> p = &*this->m_p; with boost::addressof(*this->m_p);.
That's exactly the right fix.
> This way I avoid using the address operator. This works fine, but
> maybe there's something I'm missing here, any input is welcome.
You didn't miss anything.
> I'm forced to uses boost.python for now 1.30.2, but is this problem
> solved in other releases?
It is not. If you'd like to do a survey of the current CVS for uses
of operator& and submit a patch that replaces all of them, I'd be
happy to apply it, though.
--
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com
More information about the Cplusplus-sig
mailing list