From 996f4152d2db107a5a7fd5751701a8c4b1fda15e Mon Sep 17 00:00:00 2001 From: Joel de Guzman Date: Mon, 4 Feb 2013 03:46:42 +0000 Subject: [PATCH] modern c++11 map implemented [SVN r82707] --- test/sequence/deque_iterator.cpp | 2 +- test/sequence/map.cpp | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/test/sequence/deque_iterator.cpp b/test/sequence/deque_iterator.cpp index f10f9b9e..10ce27f8 100644 --- a/test/sequence/deque_iterator.cpp +++ b/test/sequence/deque_iterator.cpp @@ -2,7 +2,7 @@ Copyright (c) 2001-2011 Joel de Guzman Copyright (c) 2006 Dan Marsden - Distributed under the Boost Software License, Version 1.0. (See accompanying + Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) ==============================================================================*/ #include diff --git a/test/sequence/map.cpp b/test/sequence/map.cpp index 265510f6..58497b44 100644 --- a/test/sequence/map.cpp +++ b/test/sequence/map.cpp @@ -79,12 +79,12 @@ main() BOOST_STATIC_ASSERT((boost::is_same::type>::type, char>::value)); BOOST_STATIC_ASSERT((boost::is_same::type>::type>::type, std::string>::value)); - //! Test random access interface. - pair a = at_c<0>(m); + // Test random access interface. + pair a = at_c<0>(m); (void) a; pair b = at_c<1>(m); } - //! iterators & random access interface. + // iterators & random access interface. { typedef pair, std::string> pair0; typedef pair, std::string> pair1; @@ -107,12 +107,11 @@ main() BOOST_TEST((deref(fusion::advance_c<4>(it0)) == deref(it4))); - //! Bi-directional + // Bi-directional BOOST_TEST((deref(fusion::prior(it4)) == deref(it3) )); BOOST_TEST((deref(fusion::prior(it3)) == deref(it2) )); BOOST_TEST((deref(fusion::prior(it2)) == deref(it1) )); BOOST_TEST((deref(fusion::prior(it1)) == deref(it0) )); - } {