From 8095231862893298122
X-Google-Thread: f78e5,49ee1c3b487069d
X-Google-Attributes: gidf78e5,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: g2news2.google.com!news4.google.com!newshub.sdsu.edu!msrtrans!msrn-in!news.alt.net!comp-std-cpp-robomod!not-for-mail
From: Mathias Gaunard <loufoque@remove.gmail.com>
Newsgroups: comp.std.c++
Subject: Re: What is the rationale behind std::tr1::enable_shared_from_this?
Date: Thu, 14 Dec 2006 14:25:48 CST
Organization: Guest of ProXad - France
Lines: 15
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
Message-ID: <4581a6d0$0$8151$426a34cc@news.free.fr>
References: <1166035229.485959.60700@16g2000cwy.googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: 1166124752 news-4.free.fr 8151 82.233.64.48:37982
X-Complaints-To: abuse@proxad.net
NNTP-Posting-Date: 14 Dec 2006 20:32:32 MET
Return-Path: <devnull@stump.algebra.com>
X-Authentication-Warning: mulga.csse.unimelb.edu.au: fjh set sender to devnull@stump.algebra.com using -f
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-Original-To: std-c++@mailman.ucar.edu
Delivered-To: std-c++@mailman.ucar.edu
User-Agent: Thunderbird 1.5.0.8 (X11/20061115)
X-Virus-Scanned: amavisd-new at ucar.edu
X-Virus-Scanned: amavisd-new at csse.unimelb.edu.au
X-Virus-Scanned: amavisd-new at csse.unimelb.edu.au
Xref: g2news2.google.com comp.std.c++:5061

Javier wrote:

> I understand the technicalities of the class, but what are some
> practical uses?  Are there any "gotchas"?  It would seem to me that
> once a class is "smartified" there are implications in a design
> regarding its lifetime.

I know it's used in the examples of Boost.asio.

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html                      ]



