
It is really hard to tell what you are trying to do from this example. Could you provide an example or description (not necessarily code) of what your matrix structure should look like. On 6/17/05, Jack Nguyen <bluekite2000@gmail.com> wrote:
I m trying to build a matrix and m having compile error w/ thei following codes mpD=boost::shared_array<boost::shared_array<T> >(new boost::shared_array<T>[cols]); mpD[0]=boost::shared_array<T>(new T[rows*cols]); for (int i=1; i<cols;i++) mpD[i]=mpD[0]+i*rows; Seems like there s no match for operator+ Regards,
On 6/16/05, Cory Nelson <phrosty@gmail.com> wrote:
mpD=boost::shared_array<T>(new T[size]);
On 6/16/05, Jack Nguyen <bluekite2000@gmail.com> 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@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- Cory Nelson http://www.int64.org
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users