[C++-sig] Re: problem with overloaded address operator
dave at boost-consulting.com
Mon Dec 6 17:06:04 CET 2004
Fred Houben wrote:
> I've downloaded the latest version of boost.python from the cvs server.
> It seems that the problem of overloaded address operators shifts from
> pointer_holder.hpp( v1.30.2) to to_python_indirect.hpp (latest cvs).
> Replacing U* const p = &const_cast<U&>(x) with U* const p =
> const_cast<U*>(boost::addressof(x)) fixes the problem.
> I'm really not that familiar with the boost.python library, but this seems
> the only change needed.
> If someone can point out other possible problems with overloaded address
> operators in boost.python, let me know.
> I've included the patched to_python_indirect.hpp.
?? This appears to be pointer_holder.hpp ??
Do you know how to create a patch file? One easy way is to make
changes in your CVS image and then do a "cvs diff -du" from the
More information about the Cplusplus-sig