Playing with tokens in C++