Subject: [Boost-bugs] [Boost C++ Libraries] #5246: mmap_file_iterator Fails to Initialize Correctly
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-03-01 14:05:18
#5246: mmap_file_iterator Fails to Initialize Correctly
--------------------------------------------------+-------------------------
Reporter: Rob Stewart <robert.stewart@â¦> | Owner: djowel
Type: Bugs | Status: new
Milestone: To Be Determined | Component: spirit
Version: Boost 1.45.0 | Severity: Problem
Keywords: |
--------------------------------------------------+-------------------------
The Spirit.Classic mmap_file_iterator, which is still recommended with
Spirit.Qi v2, fails to properly initialize m_curChar. The default ctor
ignores it and the string ctor only initializes it if the mapping
succeeds. This is a problem because the equality operator compares
m_curChar. Thus, two default constructed instances may fail to compare
equal as may a default constructed instance and one that fails to map an
empty file (or any instance that fails to map a file).
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5246> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:05 UTC