
25 May
2006
25 May
'06
2:01 p.m.
Vincent Bhérer-Roy wrote:
On 25-May-06, at 06:39, Thorsten Ottosen wrote:
Also, it will gives compile time errors for things like that:
array<int,4> a = list_of(1)(2)(3).to_array( a ); // compiles fine
It should not be neccessary with to_array() on a conforming compiler.
array<int,4, true> a(1,2,3); // doesn't compile
Note that the former zero-initializes the remaining elements. -Thorsten