From: "Fernando Cacciola" <[EMAIL PROTECTED]>
> I don't know of 'standard' examples, but in my code I do that a lot:
>
> class curve
> {
>   shared_ptr<polygon> acquire_approx() const { return m_approx ; }
>   shared_ptr<polygon> m_approx ;
> } ;

But this is not a get(). It is an acquire_approx(). :-)

I think that most programmers are familiar with get() and would expect the
returned pointer to be invalidated by the first mutating operation. I don't
see what are you trying to achieve with peek().

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to