# C++26: Module improvements

DevFeed: [C++26: Module improvements](<https://devfeed.tech/articles/c-26-module-improvements-53294.md>)

Original publisher: [Read original article](<https://www.sandordargo.com/blog/2026/09/09/cpp26-modules>)

Author: Sandor Dargo

Published: 2026-09-08T22:00:00Z

Content type: article

Language: en

Sources: [Sandor Dargo's Blog](<https://devfeed.tech/sources/sandor-dargo-s-blog.md>)

Topics: [C++](<https://devfeed.tech/topics/c-plus-plus.md>), [modules](<https://devfeed.tech/topics/modules.md>), [Build tool](<https://devfeed.tech/topics/build-tool.md>), [Unit testing](<https://devfeed.tech/topics/unit-testing.md>)

Tags: [build-system](<https://devfeed.tech/tags/build-system.md>), [build-tool](<https://devfeed.tech/tags/build-tool.md>), [c-plus-plus](<https://devfeed.tech/tags/c-plus-plus.md>), [dev](<https://devfeed.tech/tags/dev.md>), [improvements](<https://devfeed.tech/tags/improvements.md>), [modules](<https://devfeed.tech/tags/modules.md>), [unit-test](<https://devfeed.tech/tags/unit-test.md>)

## AI overview

This article explains three targeted C++26 changes intended to improve C++ modules. It focuses on removing macros from module declarations to simplify dependency discovery, allowing explicit attachment to the global module from a module unit for testing non-exported entities, and addressing additional module-related friction.

## Source excerpt

C++20 introduced modules as a - potential - fundamental shift in how we organize and consume C++ code. Sadly, the adoption has been slow -- build system support lagged, compiler implementations were incomplete and diverging, and some of the original design decisions created unnecessary friction. C++26 addresses some of these pain points with three targeted fixes. P3034R1: Module declarations ...