News for hackers. Stuff that matters.
Re:The C++ Type Loophole (C++14) by CyberRabbi on Wednesday July 28, 2021 @11:14PM (#27992425)
For those who are confused: this allows you to associate a type with a number. You can always retrieve the type you previously stored via decltype(loophole(tag<N>{}))

I was aware that the C++ type checker had memory and even that it was Turing complete. This is still non-intuitive to me. Only an Uber C++ expert who knows exactly what constructs cause the type checker to retain memory would be able to design this.

There are no comments on this comment yet.