Boost logo

Boost :

Subject: Re: [boost] Cannot access structure elements using iterator to list containing shared_ptr<struct>
From: prasad (pras.som_at_[hidden])
Date: 2012-06-14 04:57:44


       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.

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk