Check-in [bfd3e26369]

Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview

SHA1 Hash:bfd3e26369a3fb639f299325944f08332d2432ea
Date: 2010-01-08 17:21:45
User: stephan
Comment:pedantic fix for a warning emited by some gcc versions

Tags And Properties
Changes
[hide diffs]

Changes to parsepp.hpp

@@ -188,11 +188,11 @@
        - It will not decrement/increment past its start/end points.
 
        - parse_iterators are read-only iterators. They cannot be used
        to change their input.
     */
-    class parse_iterator : public std::iterator<std::input_iterator_tag,const std::string::value_type>
+    class parse_iterator : public std::iterator<std::input_iterator_tag,std::string::value_type>
     {
     private:
 	static const int start_column = 1;
     public:
 	typedef std::string::const_iterator iterator;
@@ -365,11 +365,11 @@
 	   Returns a copy of the pointed-to char, or 0 if
 	   eof().
 	*/
 	value_type operator*() const
 	{
-	    return (this->m_pos == this->m_end)
+	    return (this->m_pos >= this->m_end)
 		? 0
 		: *(this->m_pos);
 	}
 
 	/**