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 a snapshot of the master branch, built from commit 8d02ed770b.
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