Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r73659 - trunk/libs/fusion/test/algorithm
From: joel_at_[hidden]
Date: 2011-08-11 11:34:59


Author: djowel
Date: 2011-08-11 11:34:58 EDT (Thu, 11 Aug 2011)
New Revision: 73659
URL: http://svn.boost.org/trac/boost/changeset/73659

Log:
QOI + small bug fixes
Text files modified:
   trunk/libs/fusion/test/algorithm/pop_back.cpp | 14 +++++++++++++-
   1 files changed, 13 insertions(+), 1 deletions(-)

Modified: trunk/libs/fusion/test/algorithm/pop_back.cpp
==============================================================================
--- trunk/libs/fusion/test/algorithm/pop_back.cpp (original)
+++ trunk/libs/fusion/test/algorithm/pop_back.cpp 2011-08-11 11:34:58 EDT (Thu, 11 Aug 2011)
@@ -1,5 +1,5 @@
 /*=============================================================================
- Copyright (c) 2001-2006 Joel de Guzman
+ Copyright (c) 2001-2011 Joel de Guzman
 
     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)
@@ -49,6 +49,18 @@
         BOOST_TEST((pop_back(l) == make_list(1)));
     }
 
+ { // make sure empty sequences are OK
+ list<int> l(1);
+ std::cout << pop_back(l) << std::endl;
+ BOOST_TEST((pop_back(l) == make_list()));
+ }
+
+ // $$$ JDG: TODO add compile fail facility $$$
+ //~ { // compile fail check (Disabled for now)
+ //~ list<> l;
+ //~ std::cout << pop_back(l) << std::endl;
+ //~ }
+
     return boost::report_errors();
 }
 


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