Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r82707 - trunk/libs/fusion/test/sequence
From: joel_at_[hidden]
Date: 2013-02-06 20:24:58


Author: djowel
Date: 2013-02-03 22:46:42 EST (Sun, 03 Feb 2013)
New Revision: 82707
URL: http://svn.boost.org/trac/boost/changeset/82707

Log:
modern c++11 map implemented
Text files modified:
   trunk/libs/fusion/test/sequence/deque_iterator.cpp | 2 +-
   trunk/libs/fusion/test/sequence/map.cpp | 9 ++++-----
   2 files changed, 5 insertions(+), 6 deletions(-)

Modified: trunk/libs/fusion/test/sequence/deque_iterator.cpp
==============================================================================
--- trunk/libs/fusion/test/sequence/deque_iterator.cpp (original)
+++ trunk/libs/fusion/test/sequence/deque_iterator.cpp 2013-02-03 22:46:42 EST (Sun, 03 Feb 2013)
@@ -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 <boost/fusion/container/deque/deque.hpp>

Modified: trunk/libs/fusion/test/sequence/map.cpp
==============================================================================
--- trunk/libs/fusion/test/sequence/map.cpp (original)
+++ trunk/libs/fusion/test/sequence/map.cpp 2013-02-03 22:46:42 EST (Sun, 03 Feb 2013)
@@ -79,12 +79,12 @@
         BOOST_STATIC_ASSERT((boost::is_same<boost::fusion::result_of::value_of_data<boost::fusion::result_of::begin<map_type>::type>::type, char>::value));
         BOOST_STATIC_ASSERT((boost::is_same<boost::fusion::result_of::value_of_data<boost::fusion::result_of::next<boost::fusion::result_of::begin<map_type>::type>::type>::type, std::string>::value));
 
- //! Test random access interface.
- pair<int, char> a = at_c<0>(m);
+ // Test random access interface.
+ pair<int, char> a = at_c<0>(m); (void) a;
         pair<double, std::string> b = at_c<1>(m);
     }
 
- //! iterators & random access interface.
+ // iterators & random access interface.
     {
         typedef pair<boost::mpl::int_<0>, std::string> pair0;
         typedef pair<boost::mpl::int_<1>, std::string> pair1;
@@ -107,12 +107,11 @@
 
         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) ));
-
     }
 
     {


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk