<DIV>Do we have dedicated mailing list for boost.python. please give me the information. </DIV> <DIV> </DIV> <DIV>thanks <BR><BR><B><I>Jack Nguyen <bluekite2000@gmail.com></I></B> wrote:</DIV> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">I m trying to build a matrix and m having compile error w/ thei following codes<BR>mpD=boost::shared_array<boost::shared_array<T> >(new <BR>boost::shared_array<T>[cols]);<BR>mpD[0]=boost::shared_array<T>(new T[rows*cols]);<BR>for (int i=1; i<COLS;I++)<BR> mpD[i]=mpD[0]+i*rows;<BR>Seems like there s no match for operator+<BR>Regards,<BR><BR>On 6/16/05, Cory Nelson <PHROSTY@GMAIL.COM>wrote:<BR>> mpD=boost::shared_array<T>(new T[size]);<BR>> <BR>> On 6/16/05, Jack Nguyen <BLUEKITE2000@GMAIL.COM>wrote:<BR>> > I currently have<BR>> ><BR>> > template <TYPENAME T><BR>> > class Vector<BR>> > {<BR>> > private:<BR>> > int Size;<BR>> > boost::shared_array<T> mpD;<BR>> ><BR>> > void VecAlloc( int size)<BR>> > {<BR>> ><BR>> > boost::shared_array<T> mpD_temp(new T[size]);<BR>> > mpD=mpD_temp;<BR>> > }<BR>> ><BR>> > public:<BR>> > Vector()<BR>> > {<BR>> > }<BR>> > Vector(int size)<BR>> > :Size(size)<BR>> > {<BR>> > VecAlloc(size);<BR>> > }<BR>> > }<BR>> ><BR>> ><BR>> > My question is how do i get rid of boost::shared_array<T> mpD_temp(new<BR>> > T[size]); ???<BR>> ><BR>> > _______________________________________________<BR>> > Boost-users mailing list<BR>> > Boost-users@lists.boost.org<BR>> > http://lists.boost.org/mailman/listinfo.cgi/boost-users<BR>> ><BR>> <BR>> <BR>> --<BR>> Cory Nelson<BR>> http://www.int64.org<BR>> <BR>> _______________________________________________<BR>> Boost-users mailing list<BR>> Boost-users@lists.boost.org<BR>> http://lists.boost.org/mailman/listinfo.cgi/boost-users<BR>><BR><BR>_______________________________________________<BR>Boost-users mailing list<BR>Boost-users@lists.boost.org<BR>http://lists.boost.org/mailman/listinfo.cgi/boost-users<BR></BLOCKQUOTE></boost::shared_array<T><p> <hr size=1>Yahoo! Sports<br> <a href="http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=33539/*http://football.fantasysports.yahoo.com?ovchn=YAH&ovcpn=Integration&ovcrn=Mail+footer&ovrfd=YAH&ovtac=AD ">Rekindle the Rivalries. Sign up for Fantasy Football</a>