From: "Douglas Gregor" <[EMAIL PROTECTED]> > > Just to spell it out in agonizing detail, so we can look for any holes in my > logic: > > template <typename T> T* addressof(T& v) > { > return reinterpret_cast<T*>( > &const_cast<char&>(reinterpret_cast<const volatile char &>(v))); > }
The only hole is that the above doesn't work for function types, but you probably know that. :-) _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost