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 unified diffs patch

Changes to parsepp.hpp

Old (d1a8cb81036ee0e2) New (8b6eee40fb6bd171)
1 #ifndef s11n_net_PARSEPP_HPP_INCLUDED 1 #ifndef s11n_net_PARSEPP_HPP_INCLUDED
2 #define s11n_net_PARSEPP_HPP_INCLUDED 2 #define s11n_net_PARSEPP_HPP_INCLUDED
3 3
4 #include <map> 4 #include <map>
5 #include <string> 5 #include <string>
182 hidden lines
188 - It will not decrement/increment past its start/end points. 188 - It will not decrement/increment past its start/end points.
189 189
190 - parse_iterators are read-only iterators. They cannot be used 190 - parse_iterators are read-only iterators. They cannot be used
191 to change their input. 191 to change their input.
192 */ 192 */
193 class parse_iterator : public std::iterator<std::input_iterator_tag,const std::string::value_type> | 193 class parse_iterator : public std::iterator<std::input_iterator_tag,std::string::value_type>
194 { 194 {
195 private: 195 private:
196 static const int start_column = 1; 196 static const int start_column = 1;
197 public: 197 public:
198 typedef std::string::const_iterator iterator; 198 typedef std::string::const_iterator iterator;
166 hidden lines
365 Returns a copy of the pointed-to char, or 0 if 365 Returns a copy of the pointed-to char, or 0 if
366 eof(). 366 eof().
367 */ 367 */
368 value_type operator*() const 368 value_type operator*() const
369 { 369 {
370 return (this->m_pos == this->m_end) | 370 return (this->m_pos >= this->m_end)
371 ? 0 371 ? 0
372 : *(this->m_pos); 372 : *(this->m_pos);
373 } 373 }
374 374
375 /** 375 /**
1405 hidden lines
1781 1781
1782 1782
1783 } // namespace 1783 } // namespace
1784 1784
1785 #endif // s11n_net_PARSEPP_HPP_INCLUDED 1785 #endif // s11n_net_PARSEPP_HPP_INCLUDED