...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::debug::detect_memory_leaks — Switches on/off memory leaks detection.
// In header: <boost/test/debug.hpp> void detect_memory_leaks(bool on_off, unit_test::const_string report_file = unit_test::const_string());
On platforms where memory leak detection is possible inside of running application (at the moment this is only Windows family) you can switch this feature on and off using this interface. In addition you can specify the name of the file to write a report into. Otherwise the report is going to be generated in standard error stream.
Parameters: |
|