initializer_list: const reference.

Thiago Farina tfransosi@gmail.com
Sun Nov 15 13:37:00 GMT 2009


Hi,

Reading the source code of initializer_list, I saw that the definition
of reference is:

typedef const _E& reference;

Why it was declared as const? Is there a reason for this? Also already
exists a const_reference with the same declaration.

Please keep me in the CC list, because I'm not subscribed to the list yet.



More information about the Libstdc++ mailing list