Boost logo

Boost :

Subject: Re: [boost] boost policy against inline friend functions?
From: Stefan Strasser (strasser_at_[hidden])
Date: 2009-10-26 16:05:39


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


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