Generate automatically an enum inside a template regarding to parameter

2 Feb
2009
2 Feb
'09
7:02 a.m.
Hi, Is there a way to generate automatically an enum inside an template. I have e.g. the following template: template<int nr> class Test { enum { R1, ... Rx // where x is equal to nr }; } Thanks for any hint! Regards Hansjörg
5981
Age (days ago)
5981
Last active (days ago)
0 comments
1 participants
participants (1)
-
Hansi