Boost logo

Boost :

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:
> http://boost.2283326.n4.nabble.com/Cannot-access-structure-elements-using-iterator-to-list-containing-shared-ptr-struct-tp4631267p4631272.html
> Sent from the Boost - Dev mailing list archive at Nabble.com.
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>

-- 
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