
5 Feb
2010
5 Feb
'10
3:56 p.m.
looking at traits class specialization i have a question: is there a reason defining integral constants as following? static cont int dim = 42; i mean if you do not take address of that member a better solution (imho) is to define an anonymous enum like enum { dim = 42 }; or in one line enum { dim = 42 }; rather than defining a global object -- Pavel