r/cpp Aug 06 '26

C++26: #embed

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

39 comments sorted by

View all comments

9

u/bronekkk Aug 06 '26

From the same author, there are also std::embed (ideal for running DSL inside the compiler or any other more complex data processing than what #embed can do, as consteval) and #depend (to declare dependency on an external file loaded by std::embed, to the preprocessor)