Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Implementation

To monitor execution of user supplied function cpp_main() the PEM relies on the Boost.Test's Execution Monitor. Also the PEM supplies the function main() to facilitate uniform error reporting. Following files constitute the PEM implementation:

Table 41. PEM implementation files

File name

Content

boost/test/impl/execution_monitor.ipp

provides EM implementation for all supported configurations

boost/test/impl/cpp_main.ipp

supplies function main() for static library build

boost/test/included/prg_exec_monitor.hpp

combines all implementation files into single header to be use as inlined version of component

boost/test/prg_exec_monitor.hpp

contains definitions for main() function for dynamic library build and pragmas for auto-linking feature support


The PEM implementation wraps several system headers and is intended to be used as standalone library. While there exist an alternative variant to include the whole implementation directly into your program, for the long term usage the preferable solution is to build library once and reuse it.


PrevUpHomeNext