Subject: Re: [boost] Cannot access structure elements using iterator to list containing shared_ptr<struct>
From: Manjunath BJ (manjunathbagarey_at_[hidden])
Date: 2012-06-14 05:17:13
Thank you. Yes. Your suggesstion helped me.
I had to dereference the iterator to access the shared_ptr.
On Thu, Jun 14, 2012 at 10:57 AM, prasad <pras.som_at_[hidden]> wrote:
> But I am not able to access the inner details of the struct
> > >"packet_holder" using the iterator.
> > > it->type.header is not accessible.
> Changing this to (*it)->type.header should help
> View this message in context:
> Sent from the Boost - Dev mailing list archive at Nabble.com.
> Unsubscribe & other changes:
-- With Regards, Manjunath BJ
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk