This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
initializer_list: const reference.
- From: Thiago Farina <tfransosi at gmail dot com>
- To: libstdc++ at gnu dot org
- Date: Sun, 15 Nov 2009 11:36:14 -0200
- Subject: initializer_list: const reference.
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.