ThePhD / future_cxx

Work done today for the glory of tomorrow - or, C and C++ systems programming papers.
https://thephd.dev/portfolio/standard
46 stars 8 forks source link

N2726 - _Imaginary_I and _Complex macro shenanigans #38

Closed ThePhD closed 2 years ago

ThePhD commented 3 years ago

We made some macros produced a const X expression. There was absolutely no reason to do this.

This paper reverts our bad decision.

ThePhD commented 3 years ago

If this goes past r0 I'm gonna shoot myself.

https://thephd.dev/_vendor/future_cxx/papers/C%20-%20_Imaginary_I%20and%20_Complex_I%20Qualifiers.html

ThePhD commented 2 years ago

Added to C23. https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2912.pdf