Boost logo

Boost Users :

Subject: [Boost-users] [date_time] Memory leak in io example?
From: Jim Bell (Jim_at_[hidden])
Date: 2011-02-17 08:27:54


In the example code under Date Time Input/Output
<http://www.boost.org/doc/libs/1_45_0/doc/html/date_time/date_time_io.html>,
"A simple example of this new system:", it shows a date_facet being
constructed with new, then a locale constructed with it, and finally
ios::imbue called on that.

>From what I can tell from locale's constructors
<http://stdcxx.apache.org/doc/stdlibref/locale.html#idx811> and imbue,
neither will own/release that pointer.

True?


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net