Boost logo

Boost :

From: Douglas Gregor (gregod_at_[hidden])
Date: 2002-04-10 09:52:28


On Wednesday 10 April 2002 07:12 am, you wrote:
> A version that doesn't have these problems:
>
> template <class T> inline T * addressof(T & v)
> {
> return reinterpret_cast<T*>(
> &const_cast<char &>(reinterpret_cast<char const &>(v)));
> }

Thanks. I've committed this.

        Doug


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