Re: Cannot call pure virtual function from base class constructor.

2006-11-25 Thread David Fang
Hi, I've found that this article explains very well why one *cannot* call a virtual function during construction (or destruction). http://www.artima.com/cppsource/nevercall.html HTH, Fang > I have created a base class who's constructor calls a pure virtual > function I derive th

Cannot call pure virtual function from base class constructor.

2006-11-25 Thread Brad Krane
Hi, I have created a base class who's constructor calls a pure virtual function I derive this class, implement the function, compile and receive this error message, "error: abstract virtual `IDXTYPE DataSet::indexFxn(uint) [with DATA = float, IDXTYPE = float]' called from constructor" Without co