r/cpp_questions 9d ago

OPEN What’s the state of modules

I’ve been hearing about modules since a while now and I can’t seem to find any serious project on the internet using modules. I assume compilers still don’t fully support modules…

5 Upvotes

13 comments sorted by

View all comments

5

u/tartaruga232 9d ago

The MSVC compiler is pretty good now. Currently using

Microsoft (R) C/C++ Optimizing Compiler Version 19.52.36405.1 for x64 (PREVIEW)

We've modularized our Windows app. Unfortunately, it's closed source. Parts of it are published at: https://github.com/cadifra/cadifra

We currently have 1211 C++ source files. 539 files contain the keyword sequence export module. We have 4154 imports, 370 of these are import std.

We're using MSBuild (not CMake).