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

Subject: [Boost-bugs] [Boost C++ Libraries] #2908: unordered_map has no destructor!
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-04-03 13:06:34


#2908: unordered_map has no destructor!
--------------------------------------+-------------------------------------
 Reporter: anonymous | Owner: danieljames
     Type: Bugs | Status: new
Milestone: Boost 1.39.0 | Component: unordered
  Version: Boost 1.38.0 | Severity: Problem
 Keywords: unordered_map,destructor |
--------------------------------------+-------------------------------------
 I noticed that the unordered_map has no destructor as one would assume.
 There should be a destructor that calls clear() so that the content of the
 map is deleted. (cf. RAII -
 http://en.wikipedia.org/wiki/Resource_Acquisition_Is_Initialization)

 I ran into a serious memory leak because of that, when using an
 unordered_map locally and assuming that it clears its content when being
 destroyed.

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