Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

detect_memory_leaks

Parameter detect_memory_leaks enables/disables memory leaks detection (if present in your build configuration). This parameter has an optional long integer value. The default value is 1, which enables memory leak detection. The value 0 disables memory leak detection. Any value N greater than 1 is treated as leak allocation number and tells the framework to setup runtime breakpoint at Nth heap allocation. If value is omitted the default value is assumed.

[Note] Note

The only platform which supports memory leak detection is Microsoft Visual Studio family of compilers in debug builds.

Acceptable values
Command line syntax
Environment variable
BOOST_TEST_DETECT_MEMORY_LEAK

PrevUpHomeNext