
15 Mar
2009
15 Mar
'09
7:40 a.m.
Niels Dekker - mail address until 2010-10-10 wrote:
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; }
Why not simply accessing elems directly? It's public.