On 07/03/2012 03:59 PM, Jonathan Wakely wrote:
Returning a std::pair by value from a function causes problems if the caller and callee don't use the same -std setting, http://gcc.gnu.org/PR53657 and three or four other PRs.
Right, that's because the changes to pair changed its interface. This is a bug that we're working on fixing.
Jason