|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r73658 - in trunk/boost/fusion: adapted algorithm/transformation
From: joel_at_[hidden]
Date: 2011-08-11 11:34:39
Author: djowel
Date: 2011-08-11 11:34:39 EDT (Thu, 11 Aug 2011)
New Revision: 73658
URL: http://svn.boost.org/trac/boost/changeset/73658
Log:
QOI + small bug fixes
Text files modified:
trunk/boost/fusion/adapted/mpl.hpp | 1 +
trunk/boost/fusion/algorithm/transformation/pop_back.hpp | 3 +++
2 files changed, 4 insertions(+), 0 deletions(-)
Modified: trunk/boost/fusion/adapted/mpl.hpp
==============================================================================
--- trunk/boost/fusion/adapted/mpl.hpp (original)
+++ trunk/boost/fusion/adapted/mpl.hpp 2011-08-11 11:34:39 EDT (Thu, 11 Aug 2011)
@@ -17,5 +17,6 @@
#include <boost/fusion/adapted/mpl/detail/has_key_impl.hpp>
#include <boost/fusion/adapted/mpl/detail/category_of_impl.hpp>
#include <boost/fusion/adapted/mpl/detail/is_view_impl.hpp>
+#include <boost/fusion/adapted/mpl/detail/empty_impl.hpp>
#endif
Modified: trunk/boost/fusion/algorithm/transformation/pop_back.hpp
==============================================================================
--- trunk/boost/fusion/algorithm/transformation/pop_back.hpp (original)
+++ trunk/boost/fusion/algorithm/transformation/pop_back.hpp 2011-08-11 11:34:39 EDT (Thu, 11 Aug 2011)
@@ -10,6 +10,7 @@
#include <boost/fusion/view/iterator_range/iterator_range.hpp>
#include <boost/fusion/sequence/intrinsic/begin.hpp>
#include <boost/fusion/sequence/intrinsic/end.hpp>
+#include <boost/fusion/sequence/intrinsic/empty.hpp>
#include <boost/fusion/iterator/iterator_adapter.hpp>
#include <boost/fusion/iterator/next.hpp>
#include <boost/mpl/minus.hpp>
@@ -69,6 +70,8 @@
template <typename Sequence>
struct pop_back
{
+ BOOST_MPL_ASSERT_NOT((result_of::empty<Sequence>));
+
typedef pop_back_iterator<
typename begin<Sequence>::type>
begin_type;
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