$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] [array] change proposal for the c_array() function
From: Niels Dekker - mail address until 2010-10-10 (niels_address_until_2010-10-10_at_[hidden])
Date: 2009-03-14 17:47:15
> 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