pydongery / blog

MIT License
0 stars 0 forks source link

Stateful metaprogramming shenanigans #14

Open Tsche opened 2 weeks ago

Tsche commented 2 weeks ago

https://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#2118

Some examples: https://godbolt.org/z/exf4f48q4 counters https://godbolt.org/z/YP5eeoEEf stealing private alias by hijacking a member function template https://godbolt.org/z/cGxfrsben stealing private aliases by abusing injected class names

Tsche commented 2 weeks ago

https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2024/p2996r5.html#compile-time-ticket-counter