r/cpp 23h ago

Qt moc now can handle basic C++ modules (Qt 6.12)

Thumbnail codereview.qt-project.org
Upvotes
moc: Properly handle modules

When moc'ing module interfaces and partitions, we make the generated cpp
file part of the respective module.
We do not support Q_OBJECT & friends in implementation units and private
module fragments, as our generated source file will not have access to
the respective classes, and we certainly do not want to carry over our
file inclusion hacks into the module world.

[ChangeLog][moc] moc now supports C++ modulesmoc: Properly handle modules

Note there is still a lot of work to be done: https://codereview.qt-project.org/c/qt/qtbase/+/767846 and I can't seem to find the PR where they fixed some qtbase code to make it work with modules. I guess most other qt modules will need some small fixes to work with modules as well.


r/cpp 17h ago

New C++ Conference Videos Released This Month - September 2026

Upvotes

C++Now

2026-08-31 - 2026-09-06

ACCU

  • Software Abstraction in the Age of AI-Generated Code: Languages, Compilers, and Systems Engineering - Andrei Alexandrescu - https://youtu.be/-RWdevA0gWI

r/cpp 23h ago

A faster way to convert a timestamp ➜ Hour, Min, Sec

Thumbnail benjoffe.com
Upvotes