Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.c++.moderated    |    Moderated discussion of C++ superhackery    |    33,346 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 31,856 of 33,346    |
|    =?ISO-8859-1?Q?Daniel_Kr=FCgler?= to All    |
|    Re: C'tor vs. function declaration    |
|    26 Jan 12 23:45:13    |
      837d08bc       From: daniel.kruegler@googlemail.com              Am 26.01.2012 20:52, schrieb Mark Zaytsev:       [..]       > Line (4): S const& tmp1 = *&S( i ); S tmp2 = S( tmp1); obj4 =       > C( tmp2 );       > It invokes copy constructor              I'm not sure what this code transformation is intended to show, but the       initialization              S const& tmp1 = *&S( i );              is still ill-formed because it attempts to form the address of an rvalue.              Greetings from Bremen,              Daniel Krügler                     --        [ See http://www.gotw.ca/resources/clcm.htm for info about ]        [ comp.lang.c++.moderated. First time posters: Do this! ]              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca