摘自ScottMeyers的EffectiveC++:templateclassSquareMatrix:privateSquareMatrixBase{public:SquareMatrix():SquareMatrixBase(n,0),pData(newT[n*n]){this->setDataPtr(pData.get());}...private:boost::scoped_arraypData;};Regardlessofwherethedataisstored,thekeyresultfromabloatpointofviewisthatnowmany—maybeall—