help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

variable argument list inheritance


From: flatmax
Subject: variable argument list inheritance
Date: Tue, 20 Feb 2001 22:48:57 +1100 (EST)

Hi there ...

Is it possible to have inherited constructors with variable argument lists
?

I get the following error :
masterCounterInterface.H: In method
`MasterCounterInterface<CARRYTYPE,COUNTERTYPE,FIELDTYPE,FIELDCOUNT>::MasterCounterInterface(COUNTERTYPE,
COUNTERTYPE, ...)':
masterCounterInterface.H:15: parse error before `...'
masterCounterInterface.H:15: parse error at end of saved function text

it is due to the following code :
template <class CARRYTYPE, class COUNTERTYPE, class FIELDTYPE, int
FIELDCOUNT>
class MasterCounterInterface : public MasterCounter<CARRYTYPE,
COUNTERTYPE, FIELDTYPE, FIELDCOUNT> {
public:
  MasterCounterInterface(COUNTERTYPE startVal, COUNTERTYPE maximumVal,
...) : MasterCounter<CARRYTYPE, COUNTERTYPE, FIELDTYPE,
FIELDCOUNT>(startVal, maximumVal, ...){
}
}; 

can anyone help ?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]