
26 Oct
2009
26 Oct
'09
8:05 p.m.
what's wrong with template<class Y> friend bool operator<(shared_ptr<Y> const & rhs) const { return pn < rhs.pn; } in class shared_ptr?
should have been
what's wrong with template<class Y> friend bool operator<(shared_ptr<T> const &a,shared_ptr<Y> const &b) const { return a.pn < b.pn; } in class shared_ptr?