Boost logo

Boost Users :

From: Abhishek V (abhishek.v_at_[hidden])
Date: 2007-08-27 02:50:56


Hi
I m using multiarray to stores edges of an graph. I m reading the data
from a csv file.
My line is L1,0,0,0,1
Now i m using stringtok and storing the values

typedef boost::multi_array<string,2> my_array;
typedef my_array::index index;
int size =vect.size();
my_array edge(boost::extents[size][size]);

boost::stringtok(edge[fir][sec],line,",");

How do i use stringtok with multiarray..

Thanks
Abhishek Vyas
Tata Consultancy Services
Mailto: abhishek.v_at_[hidden]
Website: http://www.tcs.com
____________________________________________
Experience certainty. IT Services
                        Business Solutions
                        Outsourcing
____________________________________________

boost-users-bounces_at_[hidden] wrote on 08/27/2007 12:05:43 PM:

> > Von: boost-users-bounces_at_[hidden]
> > [mailto:boost-users-bounces_at_[hidden]] Im Auftrag von
> > kaliwanagan
> > Gesendet: Samstag, 25. August 2007 15:52
> > An: boost-users_at_[hidden]
> > Betreff: [Boost-users] boost::thread Destructor being called
> > multiple times
> >
> > I was just curious as to why the class destructor are
> > (apparently) being called multiple times. I have tried
> > searching the archives to no avail (which prompted me to
> > register and post to the mailinglist).
> >
>
> Boost::thread passes its function object around several times by value,
> so it gets coyp-constructed and destructed several times. I had the same
> problem, and used some sort of proxy-class until I realized that
> boost::bind creates exactly that kind of proxy-objects. So either use
> boost::bind or boost::mem_fn or std::mem_fun.
>
> Best Regards
> Markus
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users

> ForwardSourceID:NT0004890A
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you



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