Boost C++ Libraries: Ticket #1101: [MPI] Const-incorrectness in boost::mpi::status https://svn.boost.org/trac10/ticket/1101 <p> There are two member functions in class boost::mpi::status which lack const qualifications although they are immutable: </p> <p> (a) bool cancelled(): The documentation says: "Determine whether the communication associated with this object has been successfully cancelled." The implementation delegates to MPI_Test_cancelled, which according to the internet documentation does use it's MPI_Status* argument is IN parameter. </p> <p> (b) template&lt;typename T&gt; optional&lt;int&gt; count(): Here also the docs don't imply a mutable operation. The implementation delegates (under some circumstances) to MPI_Get_count, which also does not modify MPI_Status from a user perspective. The same function *caches* the result in the data member m_count, but this is the classic example where this member should be declared mutable therefore. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1101 Trac 1.4.3 René Rivera Sat, 18 Aug 2007 14:54:29 GMT component changed; owner set https://svn.boost.org/trac10/ticket/1101#comment:1 https://svn.boost.org/trac10/ticket/1101#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Douglas Gregor</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">mpi</span> </li> </ul> Ticket Douglas Gregor Wed, 29 Aug 2007 16:00:55 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/1101#comment:2 https://svn.boost.org/trac10/ticket/1101#comment:2 <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> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/39052" title="Constify status::count and status::cancelled. Fixes #1101 ">[39052]</a>) Constify status::count and status::cancelled. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1101" title="#1101: Bugs: [MPI] Const-incorrectness in boost::mpi::status (closed: fixed)">#1101</a> </p> Ticket