From d2d2d0aa3e6c7dfa0435e97e23839c98eab13270 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Wed, 1 Nov 2006 08:03:15 +0000 Subject: [PATCH] added transform view test covering value_at [SVN r35805] --- test/sequence/transform_view.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/sequence/transform_view.cpp b/test/sequence/transform_view.cpp index b6e4ec4e..d89b439a 100644 --- a/test/sequence/transform_view.cpp +++ b/test/sequence/transform_view.cpp @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include @@ -21,6 +22,8 @@ #include #include +#include +#include struct square { @@ -84,6 +87,7 @@ main() BOOST_TEST((*boost::fusion::advance_c<3>(boost::fusion::begin(xform)) == 64)); BOOST_TEST((boost::fusion::at_c<2>(xform) == 49)); + BOOST_MPL_ASSERT((boost::is_same::type, int>)); } { @@ -98,6 +102,7 @@ main() std::cout << xform << std::endl; BOOST_TEST((xform == make_vector(15, 17, 19, 21))); BOOST_TEST((boost::fusion::at_c<2>(xform) == 19)); + BOOST_MPL_ASSERT((boost::is_same::type, int>)); } return boost::report_errors();