This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/56976] using braces to initialize a reference forces copy construction
- From: "akim.demaille at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 15 May 2013 08:37:17 +0000
- Subject: [Bug c++/56976] using braces to initialize a reference forces copy construction
- Auto-submitted: auto-generated
- References: <bug-56976-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56976
--- Comment #2 from Akim Demaille <akim.demaille at gmail dot com> ---
Maybe I don't know, even after having read several times the section you
pointed me to. In particular I see nothing there which could explain why using
foo() instead of foo{} would give different results.
FWIW, other people fell on this issue, and I didn't see any clear cut answer.
http://stackoverflow.com/questions/12450258/how-generic-is-the-construction-syntax?lq=1