How to implement a constant-expression counter in C++ · HackerTrans