-
Book Overview & Buying
-
Table Of Contents
Software Architecture with C++ - Second Edition
By :
In this chapter, we explored how C++20 modules address limitations faced with traditional header files. We discussed how to consume and create C++ modules. We also looked at practical strategies for migrating existing code bases, where header files and modules coexist to maintain backward compatibility. We then demonstrated how to build and distribute modules using CMake and Conan, including workarounds for current limitations such as the lack of native module metadata in find_package(). Overall, we saw how C++ modules can fit into modern C++ workflows.
In the next chapter, we’ll discuss how to write testable code, which includes important aspects such as the hierarchy of different types of testing in the testing pyramid, since choosing the right strategy affects both the time spent on testing and especially its cost, as well as the time spent on finding the causes of errors in projects. It also introduces the features of different testing frameworks and explains...