|
Boost Users : |
From: Hicham Mouline (hicham_at_[hidden])
Date: 2007-11-27 11:23:15
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,
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net