Boost C++ Libraries: Ticket #2941: boost/pool/pool.hpp uses reinterpret_cast instead of static_cast https://svn.boost.org/trac10/ticket/2941 <p> In pool.hpp there's a lot of reinterpret_cast usage like so: </p> <pre class="wiki">static char * malloc(const size_type bytes) { return reinterpret_cast&lt;char *&gt;(std::malloc(bytes)); } </pre><p> This is a case where static_cast should be used instead. reinterpret_cast is known to yield implementation specific behavior. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2941 Trac 1.4.3 Steven Watanabe Thu, 10 Jun 2010 01:46:39 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2941#comment:1 https://svn.boost.org/trac10/ticket/2941#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> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/62705" title="Use static_cast instead of reinterpret_cast. Fixes #2941">[62705]</a>) Use static_cast instead of reinterpret_cast. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2941" title="#2941: Tasks: boost/pool/pool.hpp uses reinterpret_cast instead of static_cast (closed: fixed)">#2941</a> </p> Ticket Marshall Clow Tue, 11 Jan 2011 14:22:36 GMT <link>https://svn.boost.org/trac10/ticket/2941#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2941#comment:2</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/67958" title="Merging fixes to release; Fixes #2696; Refs #4346; Refs #2941; Refs #386">[67958]</a>) Merging fixes to release; Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2696" title="#2696: Bugs: max_size for boost pool (closed: fixed)">#2696</a>; Refs <a class="reopened ticket" href="https://svn.boost.org/trac10/ticket/4346" title="#4346: Bugs: Boost pool's not comaptible with Microsoft memory leak detection (reopened)">#4346</a>; Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2941" title="#2941: Tasks: boost/pool/pool.hpp uses reinterpret_cast instead of static_cast (closed: fixed)">#2941</a>; Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/386" title="#386: Bugs: boost::pool_allocator breaks with vector of vectors (closed: fixed)">#386</a> </p> </description> <category>Ticket</category> </item> </channel> </rss>