Boost C++ Libraries: Ticket #5246: mmap_file_iterator Fails to Initialize Correctly https://svn.boost.org/trac10/ticket/5246 <p> 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). </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5246 Trac 1.4.3 Hartmut Kaiser Fri, 04 Mar 2011 00:00:13 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/5246#comment:1 https://svn.boost.org/trac10/ticket/5246#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Fixed in rev <a class="changeset" href="https://svn.boost.org/trac10/changeset/69476" title="Fixed #5246: mmap_file_iterator Fails to Initialize Correctly">[69476]</a> </p> Ticket