Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the world of pmr::test_resource in this comprehensive conference talk from CppNow 2019. Dive into the C++17 memory resource designed for testing, which can be integrated with any test framework. Learn how this modernized version of Bloomberg's bslma::TestAllocator has been instrumental in uncovering various bugs, including memory leaks, overruns, multiple deletes, and exception-safety guarantee failures. Follow along as the presenter demonstrates the use of test_resource in detecting memory allocation-related errors, walking through code examples to showcase bug detection, diagnosis, and resolution. Gain insights into the proposal for including pmr::test_resource in the Library Fundamentals 3 TS and access the full source code for test_resource, bslma::TestAllocator, and examples on GitHub. Presented by Attila Fehér, a Senior Software Engineer at Bloomberg LP and the original proposer of C++11 alignment features, this talk offers valuable knowledge for C++ developers looking to enhance their testing practices and improve code quality.