Boost logo

Boost Users :

From: Cory Nelson (phrosty_at_[hidden])
Date: 2005-06-16 19:26:30


mpD=boost::shared_array<T>(new T[size]);

On 6/16/05, Jack Nguyen <bluekite2000_at_[hidden]> wrote:
> 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_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>

-- 
Cory Nelson
http://www.int64.org

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net