Re: [cxx-abi-dev] Initializer Lists
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cxx-abi-dev] Initializer Lists



Jason Merrill wrote:
The initializer list proposal

http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2640.pdf
http://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 constructor

    initializer_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