Hi,
While reading the Boost::shared_p tr implementation, I came across this
method
template<class Tclass shared_ptr
{
.....
template<class Y>
shared_ptr(shar ed_ptr<Yconst & r, boost::detail:: const_cast_tag) :
px(const_cast<e lement_type *>(r.px)), pn(r.pn)
{
}
....
#ifndef BOOST_NO_MEMBER _TEMPLATE_FRIEN DS
private:
template<class Yfriend class shared_ptr;
template<class Yfriend class weak_ptr;
#endif
T * px; // contained pointer
boost::detail:: shared_count pn; // reference counter
};
Does it mean that px and pn are public members ? As it seems from its
usage in dynamic casting.
My understanding is correct or am I missing anything?
-ketan