templates w/ non-type arguments

14 Jan
2008
14 Jan
'08
12:13 p.m.
Hello, I have: enum ParamType { FLAT, CURVE1D, CURVE2D }; template<ParamType r, ParamType q, ParamType v> class TIP: { }; I would like to explicitly write all the possible full specializations of TIP... template class TIP<FLAT, FLAT, FLAT>; ... regards,

15 Jan
15 Jan
12:50 a.m.
"Hicham Mouline" <hicham@mouline.org> wrote in message news:20080114191355.0EA71200C2@ws6-7.us4.outblaze.com...
Hello,
I have: enum ParamType { FLAT, CURVE1D, CURVE2D };
template<ParamType r, ParamType q, ParamType v> class TIP: { };
I would like to explicitly write all the possible full specializations of TIP... template class TIP<FLAT, FLAT, FLAT>;
template<> class TIP<FLAT, FLAT, FLAT> {}; template<> class TIP<FLAT, FLAT, CURVE1D> {}; etc.
...
regards,
6365
Age (days ago)
6366
Last active (days ago)
1 comments
2 participants
participants (2)
-
Hicham Mouline
-
Michael Gopshtein