Added support for assignment from std::pair. Test in tuple_test_bench.cpp enabled for MSVC version

[SVN r11025]
This commit is contained in:
Douglas Gregor
2001-09-05 03:22:31 +00:00
parent d427f6027d
commit 31efdb5485
2 changed files with 33 additions and 22 deletions

View File

@ -244,11 +244,10 @@ void foo4()
// testing tie
// testing assignment from std::pair
void foo7() {
#if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)
int i, j;
tie (i, j) = std::make_pair(1, 2);
BOOST_TEST(i == 1 && j == 2);
#endif
tuple<int, int, float> a;
#ifdef E11
a = std::make_pair(1, 2); // should fail, tuple is of length 3, not 2