Jason Merrill wrote:
The initializer list proposal http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2640.pdfhttp://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2531.pdf (library changes only, the core changes are superceded by N2640)
I've been implementing this in g++, and currently have a private constructorinitializer_list(const T* _a, size_t _l)which the compiler invokes directly by suppressing access control over the call.
Sounds reasonable to me, FWIW. -- Mark Mitchell CodeSourcery mark@xxxxxxxxxxxxxxxx (650) 331-3385 x713