diff options
Removed internal codepoint caching
* it is not the responsibility of a codepoint iterator to cache the resolved codepoint for reuse
** if this is required by the user of this class can iterate it better in the context it is required
** e.g. implement a "CachedIterator" template
Diffstat (limited to 'src/codepoint_iterator.h')
| -rw-r--r-- | src/codepoint_iterator.h | 3 | 
1 files changed, 1 insertions, 2 deletions
| diff --git a/src/codepoint_iterator.h b/src/codepoint_iterator.h index 938f53d..6c8c43d 100644 --- a/src/codepoint_iterator.h +++ b/src/codepoint_iterator.h @@ -34,8 +34,7 @@ class CodepointIterator : public std::iterator<std::bidirectional_iterator_tag,  	private:  		std::string::const_iterator iterator_; -		bool dereferenced_; -		char32_t codepoint_; +  };  class codepoint_invalid: public std::exception { | 
