$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Jack Nguyen (bluekite2000_at_[hidden])
Date: 2005-06-16 17:12:46
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]); ???