
On 5/25/06, Thorsten Ottosen <thorsten.ottosen@dezide.com > wrote:
OK, I see what you mean.
I would be quite easy for me to let
array<int, 5> = cref_list_of<6>(...);
give a compile error if the dimensions did not match.
It can also be done for list_of(), but it is much harder.
Should I put this in the cvs for ref_list_of() and cref_list_of()?
Sure! It would be a nice feture for Boost.Assign. However, it doesn't close the debate for me about a constructible array ;-) It is not that I don't like Boost.Assign or similar constructs, but I really think a good old constructor is far superior when available. So. Since people don't like my initial proposition, I then propose a "constructible_array" or another name that has the same behaviour than Boost.Array, except with construction. Any comments?