c++
C++ style template constants with C# generics.
I’m definitely not the first person to think of this, but I like it in a cheating kind of way. Is the typeof(subtract) == typeof(const_true) comparison optimized away by the compiler? If not, I can Read more…