From 14b27978e3010b0057338d6c2c66eb3e0664af4e Mon Sep 17 00:00:00 2001 From: Joel de Guzman Date: Fri, 10 Jul 2009 00:49:51 +0000 Subject: [PATCH] Fix #1601 [SVN r54849] --- test/sequence/boost_tuple.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/sequence/boost_tuple.cpp b/test/sequence/boost_tuple.cpp index 07e39695..c3949cbf 100644 --- a/test/sequence/boost_tuple.cpp +++ b/test/sequence/boost_tuple.cpp @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include @@ -84,6 +85,16 @@ main() fusion::list l(tuples::make_tuple(123, "Hola!!!")); l = tuples::make_tuple(123, "Hola!!!"); } + + { + // test from Ticket #1601, submitted by Shunsuke Sogame + // expanded by Stjepan Rajko + boost::tuple t(3, 'a'); + + BOOST_TEST(0u == fusion::distance(fusion::begin(t), fusion::begin(t))); + BOOST_TEST(1u == fusion::distance(fusion::begin(t), fusion::next(fusion::begin(t)))); + BOOST_TEST(2u == fusion::distance(fusion::begin(t), fusion::end(t))); + } return boost::report_errors(); }