Re: [Boost-bugs] [Boost C++ Libraries] #2908: unordered_map has no destructor!

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2908: unordered_map has no destructor!
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-04-03 14:12:17


#2908: unordered_map has no destructor!
---------------------------+------------------------------------------------
  Reporter: anonymous | Owner: danieljames
      Type: Bugs | Status: closed
 Milestone: Boost 1.39.0 | Component: unordered
   Version: Boost 1.38.0 | Severity: Problem
Resolution: invalid | Keywords: unordered_map,destructor
---------------------------+------------------------------------------------
Changes (by danieljames):

  * status: new => closed
  * resolution: => invalid

Comment:

 The memory management is taken care of by an internal implementation class
 called `hash_table_data_equivalent_keys` or `hash_table_data_unique_keys`.
 You can see the destructor here:

 https://svn.boost.org/trac/boost/browser/trunk/boost/unordered/detail/hash_table_impl.hpp?rev=51995#L380

 The destructor is called `BOOST_UNORDERED_TABLE_DATA` because I'm using
 macros to define the two different hash tables with a single
 implementation.

 `unordered_map` and `unordered_set`'s implicit destructors both call the
 implementation classes' destructors, so there's no need to define a
 destructor for those classes.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2908#comment:1>
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:49:59 UTC