As the subject line says -- Is it possible to have a single (static) class variable that's common to all instances of a templated class?
The code below does not work like I want because the static 'instanceCounter' variable is only common to all instances of the same type 'T'. I'm looking for a static variable that's common to all instances of the 'TheClass' class across all types of 'T'.
I read the question, which went straight over my head, then I saw that @gfvalvo had provided the solution (which also went over my head) and I thought how nice it is to have ppl like @gfvalvo around who know stuff and contribute.
Finally I noticed it was @gfvalvo's question in the first place. How nice it is to know that everyone has things left to figure out. For themselves, sometimes.