Boost logo

Boost :

From: Kevlin Henney (kevlin_at_[hidden])
Date: 2000-11-25 10:26:10


In message <200011242142.NAA23521_at_[hidden]>, Jesse Jones
<jesjones_at_[hidden]> writes
>Evidently I wasn't making myself clear enough. What you were suggesting
>was that callback would be non-copyable and clients would have to use
>shared_ptr<callback> if they wanted a copyable version. All that I'm
>saying is that callbacks are copied sufficently often that I'd prefer to
>make callback itself copyable.

Ah, I guess I wasn't making myself clear enough, so we may have been
talking at cross purposes. I never said that callbacks weren't or might
not be copyable; quite the opposite in fact. I have assumed that
callbacks must be copy assignable and copy constructible. I am
supporting the view that internally for implementation they would use
cloning. I was only proposing shared_ptr for cases where people
genuinely wanted/needed to share a given callback instance, eg to avoid
copying.

Kevlin
____________________________________________________________

  Kevlin Henney phone: +44 117 942 2990
  Curbralan Limited mobile: +44 7801 073 508
  mailto:kevlin_at_[hidden] fax: +44 870 052 2289
  http://www.curbralan.com
____________________________________________________________


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