News for hackers. Stuff that matters.
Re:C++: Return value optimization vs. std::move by plorkyeran on Monday July 20, 2015 @05:19PM (#9919163)
std::list's move constructor is deliberately not specified to be noexcept even when the allocator's is, and in Dinkumware's implementation it actually can throw, since it allocates a new end sentinel for the moved-from list.
Re:C++: Return value optimization vs. std::move by nly on Monday July 20, 2015 @11:02PM (#9920349)
Constructors may need to allocate a sentinel, I see no reason for the move constructor to do so. I'd also question the performance benefits of having a sentinel (basically avoiding additional null pointer checks) has on performance given todays relative cache penalties.