g++ 4.7.1: noexcept for the move constructor
In g++ 4.7.1, it seems that the noexcept keyword is mandatory for the move constructor of a class.
For instance, without noexcept, the container vector calls the standard copy constructor instead of the move constructor when an internal reallocation is needed (push_back).
|