Boost logo

Boost Users :

From: Hicham Mouline (hicham_at_[hidden])
Date: 2008-01-15 13:10:26


I realize my question was not complete!
Is it possible to write the 3 x 3 x 3 explicit instantiations, not with 27 lines of code, but perhaps in some kind of loop?

Rds,

-----Original Message-----
From: boost-users-bounces_at_[hidden] [mailto:boost-users-bounces_at_[hidden]] On Behalf Of Michael Gopshtein
Sent: 15 January 2008 08:51
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] templates w/ non-type arguments

"Hicham Mouline" <hicham_at_[hidden]> wrote in message
news:20080114191355.0EA71200C2_at_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,


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