Don't SFINAE pair's copy assignment operator in C++03 mode.
authorEric Fiselier <eric@efcs.ca>
Mon, 25 Jul 2016 00:48:36 +0000 (00:48 +0000)
committerEric Fiselier <eric@efcs.ca>
Mon, 25 Jul 2016 00:48:36 +0000 (00:48 +0000)
commit4e91ea50a01d9d415bb7e78545329781f5f012e2
treef7f327e20c594d127757ac47c237adceaf39b921
parent141b2881d7fb09aa43b2de0af467d02d8f9344a8
Don't SFINAE pair's copy assignment operator in C++03 mode.

In C++03 mode evaluating the SFINAE can cause a hard error due to
access control violations. This is a problem because the SFINAE
is evaluated as soon as the class is instantiated, and not later.

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