|
From: Luigi B. <lui...@gm...> - 2010-02-25 15:46:11
|
On Wed, 2010-02-17 at 18:46 +0100, Ferdinando Ametrano wrote: > On Wed, Feb 17, 2010 at 10:36 AM, <lba...@us...> wrote: > > I have no idea what VC9 complains about, but the 'this->' is > > required by the C++ standard. > > see Visual Studio Help below > > ================================================ > > Error Message > 'this' : used in base member initializer list > > > The this pointer is valid only within nonstatic member functions. It > cannot be used in the initializer list for a base class. I see. Except we're using it for our own data members, not for a base class. Oh well. You can remove the warning by removing xBegin2_(this->xBegin_+n) from the initializer list and adding xBegin2_ = this->xBegin_+n; to the body of the constructor. Luigi -- All generalizations are false, including this one. -- Mark Twain |