summaryrefslogtreecommitdiff
path: root/boost/spirit/home/classic/core/primitives/primitives.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/spirit/home/classic/core/primitives/primitives.hpp')
-rw-r--r--boost/spirit/home/classic/core/primitives/primitives.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/boost/spirit/home/classic/core/primitives/primitives.hpp b/boost/spirit/home/classic/core/primitives/primitives.hpp
index cd87c3dda8..93b5b22eb2 100644
--- a/boost/spirit/home/classic/core/primitives/primitives.hpp
+++ b/boost/spirit/home/classic/core/primitives/primitives.hpp
@@ -56,7 +56,7 @@ BOOST_SPIRIT_CLASSIC_NAMESPACE_BEGIN
if (this->derived().test(ch))
{
iterator_t save(scan.first);
- ++scan.first;
+ ++scan;
return scan.create_match(1, ch, save, scan.first);
}
}
@@ -589,14 +589,14 @@ BOOST_SPIRIT_CLASSIC_NAMESPACE_BEGIN
if (!scan.at_end() && *scan == '\r') // CR
{
- ++scan.first;
+ ++scan;
++len;
}
// Don't call skipper here
if (scan.first != scan.last && *scan == '\n') // LF
{
- ++scan.first;
+ ++scan;
++len;
}