
14 Mar
2009
14 Mar
'09
9:47 p.m.
herve martin wrote:
I would submit a simple change request in the boost::array library. ... I suggest to change: T* c_array() { return elems; }
into T (&c_array())[N] { return *(T(*)[N]) elems; }
No need to change the original implementation of array::c_array()! Your change of its return type should be sufficient: T (&c_array())[N] { return elems; }
Actually I did the very same request for std::array! [...] http://home.roadrunner.com/~hinnant/issue_review/lwg-active.html#930
Kind regards, Niels