[Boost-bugs] [Boost C++ Libraries] #2941: boost/pool/pool.hpp uses reinterpret_cast instead of static_cast

Subject: [Boost-bugs] [Boost C++ Libraries] #2941: boost/pool/pool.hpp uses reinterpret_cast instead of static_cast
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-04-12 20:29:34


#2941: boost/pool/pool.hpp uses reinterpret_cast instead of static_cast
------------------------------------------+---------------------------------
 Reporter: philippe.vaucher | Owner: cnewbold
     Type: Tasks | Status: new
Milestone: Boost 1.39.0 | Component: pool
  Version: Boost 1.38.0 | Severity: Optimization
 Keywords: reinterpret_cast static_cast |
------------------------------------------+---------------------------------
 In pool.hpp there's a lot of reinterpret_cast usage like so:

 {{{
 static char * malloc(const size_type bytes)
 {
   return reinterpret_cast<char *>(std::malloc(bytes));
 }
 }}}

 This is a case where static_cast should be used instead.
 reinterpret_cast is known to yield implementation specific behavior.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2941>
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:00 UTC