Fix pair::operator=(TupleLike&&).
authorEric Fiselier <eric@efcs.ca>
Mon, 29 Aug 2016 01:43:41 +0000 (01:43 +0000)
committerEric Fiselier <eric@efcs.ca>
Mon, 29 Aug 2016 01:43:41 +0000 (01:43 +0000)
commit4268a742f5911a48ef460122847f81526232e1c0
tree64f9718eaa900eaf02d640a7451614fafa5d4023
parent67c234417412b2d27e30ec30d6883ab9c8d60fc6
Fix pair::operator=(TupleLike&&).

This assignment operator was previously broken since the SFINAE always resulted
in substitution failure. This caused assignments to turn into
copy construction + assignment.

This patch was originally committed as r279953 but was reverted due to warnings
in the test-suite. This new patch corrects those warnings.

llvm-svn: 279955
libcxx/include/utility
libcxx/test/std/utilities/utility/pairs/pairs.pair/assign_tuple.pass.cpp [new file with mode: 0644]