It would be great to generate a unique ID on the preprocessor to get arround using RTTI to determine a type at runtime. I've come accross the option __ COUNTER__ as a gcc macro define. I was quite happy with that but unfortunately my embedded compiler MDK-ARM does not support it :(.
Is there a way to emulate this counter? This is C++, so template meta progrmaming would be an option. Any ideas?