From: Eric Niebler (eric_at_[hidden])
Date: 2005-03-14 14:28:47
Peter Dimov wrote:
> Eric Niebler wrote:
>>> +// Borland doesn't like casting an array reference to a char
>>> reference +// but thes overloads work around the problem.
>>> +# if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564))
>>> +template<typename T,std::size_t N>
>>> +T (*addressof(T (&t)[N]))[N]
>>> + return reinterpret_cast<T(*)[N]>(&t);
> Why are you reinterpret_casting &t to itself? Is this a Borland problem
> as well?
Russell added the reinterpret_casts to my patch. Russell, can you comment?
-- Eric Niebler Boost Consulting www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk