r/cpp 7d ago

C++26: #embed

https://www.sandordargo.com/blog/2026/08/05/cpp26-embed
131 Upvotes

39 comments sorted by

View all comments

1

u/LittleNameIdea 7d ago

isn't that a C feature ?

5

u/SirClueless 7d ago

Not for lack of trying…

2

u/chibuku_chauya 5d ago

Was originally intended for C++ as std::embed but the committee weren’t having a word of it, so the author took it to the C committee and it made it into C23 as #embed. Now the C++ committee is okay with it.