Partial Spezialization of member function
From: Paul Schneider (paulibaer_at_uboot.com)
Date: 09/30/04
- Previous message: Thomas Matthews: "Re: complex for loops?"
- Next in thread: Rob Williscroft: "Re: Partial Spezialization of member function"
- Reply: Rob Williscroft: "Re: Partial Spezialization of member function"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 30 Sep 2004 15:26:59 +0000
Hi,
I am getting compiler errors with the following setup:
template<size_t N, enum one, enum two, enum three>
class Myclass {
double fun();
};
template<size_t N, enum one, enum two, enum three>
double MyClass<N, one, two, three>::fun() { return 0.0;}
The above compiles fine, but as soon as I want to partially specialize
my member function with:
template<size_t N, enum two, enum three>
double MyClass<N, someenum, two, three>::fun() { return 1.0; }
I get:
/home/paultschi/workspace/abcalibration/src/model.cpp:32: error: no
`double abcalibration::Model<N, EDV, forVola, fxVola>::onePerAlpha()'
member function declared in class `abcalibration::Model<N, EDV, forVola,
fxVola>'
/home/paultschi/workspace/abcalibration/src/model.cpp:32: error:
template definition of non-template `double abcalibration::Model<N, EDV,
forVola, fxVola>::onePerAlpha()'
(replace above names with Myclass and fun)
I am grateful for any hints on how to do this.
Cheers,
Paul
- Previous message: Thomas Matthews: "Re: complex for loops?"
- Next in thread: Rob Williscroft: "Re: Partial Spezialization of member function"
- Reply: Rob Williscroft: "Re: Partial Spezialization of member function"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|