MSVC version of get<N> can now handle const tuples properly

Testcase for const tuples added


[SVN r10986]
This commit is contained in:
Douglas Gregor
2001-09-01 01:52:14 +00:00
parent 3bbc493fc1
commit b9cb417106
2 changed files with 33 additions and 21 deletions

View File

@ -273,6 +273,14 @@ void foo8()
#endif
}
// Testing const tuples
void foo9()
{
const tuple<int, float> t1(5, 3.3f);
BOOST_TEST(get<0>(t1) == 5);
BOOST_TEST(get<1>(t1) == 3.3f);
}
// --------------------------------
// ----------------------------
@ -286,6 +294,7 @@ int test_main(int, char *[]) {
foo6();
foo7();
foo8();
foo9();
return 0;
}