16 Jun
2005
16 Jun
'05
10:12 p.m.
I currently have template <typename T> class Vector { private: int Size; boost::shared_array<T> mpD; void VecAlloc( int size) { boost::shared_array<T> mpD_temp(new T[size]); mpD=mpD_temp; } public: Vector() { } Vector(int size) :Size(size) { VecAlloc(size); } } My question is how do i get rid of boost::shared_array<T> mpD_temp(new T[size]); ???