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 32,250 of 33,346    |
|    =?ISO-8859-1?Q?Daniel_Kr=FCgler?= to All    |
|    Re: Internal move vs. copy in std::vecto    |
|    06 May 12 13:03:49    |
      2373dc89       From: daniel.kruegler@googlemail.com              Am 06.05.2012 06:10, schrieb Nikolay Ivchenkov:              > [..] Vector reallocation should use move       > operations when T's move constructor has a non-throwing exception       > specification or the call to T's copy constructor would not be well-       > formed when considering immediate context; otherwise it should use T's       > copy constructor.              I have no strong opinion on this one. The advantage is that it would       support move-operations where-ever possible, but it would do that with       the risk of providing less exception guarantees. I'm not sure that       everyone would be happy with that. One further thing to notice is that       it would not only affect the concrete user-provided type X, but also       derived types, like std::pair |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca