
27 Nov
2007
27 Nov
'07
4:23 p.m.
hi, Is it possible to define some member functions conditionally on integral template argument values? template <int n> class C { void f1(); void f2(); .... void f6(); // should be a member only if n==3 for e.g. }; I could specialize this template and then i would have to define f1..5() for both the general case and the special case(n==3). rds,