Does an exception use move semantics when thrown in C++11?
问题 http://www.drdobbs.com/cpp/practical-c-error-handling-in-hybrid-env/197003350?pgno=4 In this article Herb Sutter explains that throwing an exception requires a copy of the exception as it's created as a temporary and therefore uses an std::auto_ptr to get round the copy overhead. In light of move semantics being made available in C++11 is this still necessary? 回答1: I have just checked, and the Standard allows omitting the copy or move of an object specified by the operand of a throw