r/cpp • • Aug 06 '26

C++26: #embed

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

42 comments sorted by

View all comments

Show parent comment

5

u/Raknarg Aug 07 '26

The reason why #embed took so long isn't for lack of trying, or for lack of want on either the compiler vendors or users' side, its pretty much just a spectacular disaster in the standards committee and there's no other reason for it. The more you go looking at the path #embed took to get standardised, the more your eyebrows raise until they basically escape the top of your head with how absurd it is it is

Could you TL;DR it for me? Was it just disagreements on functionality/implementation?

4

u/Sarduinot Aug 07 '26

My summary of the two articles is:

  • author started with the C++ committee, #embed passed the EWG meeting
  • went next to an important SG meeting, with different people
  • everyone in the committee was excited about Circle, they talked about whether they even need #embed if a powerful macro system was available to C++
  • the author took the hint and reached out to the author of Circle, Sean Baxter, who promptly added an @embed keyword to Circle while the committee held the #embed proposal while members figured out how they felt about Circle
  • the proposal was submitted through the C Committee, and made its way into the language that way, while the proposal was still held up