|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r49230 - trunk/tools/quickbook/detail
From: daniel_james_at_[hidden]
Date: 2008-10-09 18:13:48
Author: danieljames
Date: 2008-10-09 18:13:48 EDT (Thu, 09 Oct 2008)
New Revision: 49230
URL: http://svn.boost.org/trac/boost/changeset/49230
Log:
position_iterator is meant to be a forward iterator, so avoid using operator+ with it.
Text files modified:
trunk/tools/quickbook/detail/template_stack.hpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
Modified: trunk/tools/quickbook/detail/template_stack.hpp
==============================================================================
--- trunk/tools/quickbook/detail/template_stack.hpp (original)
+++ trunk/tools/quickbook/detail/template_stack.hpp 2008-10-09 18:13:48 EDT (Thu, 09 Oct 2008)
@@ -17,6 +17,7 @@
#include <boost/spirit/iterator/position_iterator.hpp>
#include <boost/spirit/utility/functor_parser.hpp>
#include <boost/spirit/symbols/symbols.hpp>
+#include <boost/next_prior.hpp>
namespace quickbook
{
@@ -63,7 +64,7 @@
scan.first = f;
}
if (len >= 0)
- scan.first = f+len;
+ scan.first = boost::next(f, len);
return len;
}
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