Project shows example application with C++ Modules TS feature (which will be introduced in C++20 standard). For building code it uses build2 - an open source (MIT), cross-platform build toolchain with C++ Modules TS building support.
In cxx-modules-build2
directory there are application files with C++ code:
main.cpp
contains main function, module import statements and usesmath
,std.io
andstd.core
modulesmath.cpp
containsmath
module implementationmath.mpp
containsmath
module interface
Being in root directory of project run in terminal:
sudo ./build_and_run.sh
Being in root directory of project run in terminal:
bdep init -C @clang cc config.cxx=clang++
b
cxx-modules-build2/main