diff --git a/classic/doc/multi_pass.html b/classic/doc/multi_pass.html index f5baa7900..d228caa24 100644 --- a/classic/doc/multi_pass.html +++ b/classic/doc/multi_pass.html @@ -248,7 +248,7 @@ not the case.  If your grammar is deterministic, you can make use of flush_

CheckingPolicy

The CheckingPolicy must have the following interface:

-
    class my_check
{
protected:

my_check();
my_check(my_check const& x);
void destroy();
void swap(my_check& x);
// check should make sure that this iterator is valid
void check() const;
void clear_queue();
};
+
    class my_check
{
protected:

my_check();
my_check(my_check const& x);
void destroy();
void swap(my_check& x);
// check should make sure that this iterator is valid
void check_if_valid() const;
void clear_queue();
};

StoragePolicy

A StoragePolicy must have the following interface:

diff --git a/include/boost/spirit/home/classic/iterator/multi_pass.hpp b/include/boost/spirit/home/classic/iterator/multi_pass.hpp index ec8e01c97..fd9482ef3 100644 --- a/include/boost/spirit/home/classic/iterator/multi_pass.hpp +++ b/include/boost/spirit/home/classic/iterator/multi_pass.hpp @@ -194,7 +194,7 @@ class buf_id_check } // called to verify that everything is okay. - void check() const + void check_if_valid() const { if (buf_id != *shared_buf_id) { @@ -226,7 +226,7 @@ class no_check no_check(no_check const&) {} void destroy() {} void swap(no_check&) {} - void check() const {} + void check_if_valid() const {} void clear_queue() {} }; @@ -1000,7 +1000,7 @@ reference multi_pass:: operator*() const { - CHP::check(); + CHP::check_if_valid(); return SP::dereference(*this); } @@ -1034,7 +1034,7 @@ multi_pass& multi_pass:: operator++() { - CHP::check(); + CHP::check_if_valid(); SP::increment(*this); return *this; }