17 Jun
2005
17 Jun
'05
12:26 a.m.
mpD=boost::shared_array<T>(new T[size]);
On 6/16/05, Jack Nguyen
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]); ???
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- Cory Nelson http://www.int64.org