Re: std::move and vc10: bug or misunderstanding?
On 5/24/2013 8:39 AM, Daniel wrote:
On Friday, May 24, 2013 5:34:02 AM UTC-4, SG wrote:
On May 24, 3:29 am, Daniel wrote:
I just tried your test using g++ (tdm64-1) 4.6.1 and Boost 1.53 with
the following result:
Running 1 test case...
*** No errors detected
Thanks SG, really appreciate that you tried this, after Paavo's feedback and your's, I reran the test, and observed that the leaks, e.g.
Detected memory leaks!
Dumping objects ->
{713} normal block at 0x007BCB98, 16 bytes long.
Data: < > CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD
are only reported in Debug, not Release. It's nice to know that this is not a C++ issue.
In order for them to be reported in Release you need to use special
tools. In Debug those tools are incorporated into your executable by
the compiler/linker. IOW, if you don't see any leaks in Release, it's
not because there aren't any leaks, it's because you don't look with
proper tools.
If you want to learn more about available tools from Microsoft, read up
on _CrtMemCheckpoint (and related functions), start here:
http://msdn.microsoft.com/en-us/library/vstudio/wc28wkas(v=vs.100).aspx
, or just search the web for "debugging memory leak windows". Plenty of
info available.
V
--
I do not respond to top-posted replies, please don't ask