
8 Feb
2006
8 Feb
'06
4:01 p.m.
On 2/8/06, Christopher Kohlhoff <chris@kohlhoff.com> wrote: [snip]
However, this is probably all too complicated for a tutorial. I'm now leaning towards just going with the shared_from_this() style for the tutorial (as used in the HTTP server example), with an appropriate link into the shared_ptr docs explaining it. If a developer is sufficiently motivated to want to eliminate the costs of using shared_ptr, I'll point them to other examples that showcase alternative styles.
Is there any ready example about alternative styles without shared_ptr overhead? I'm very curious about how it is possible (without cluttering the code).
Cheers, Chris
best regards, -- Felipe Magno de Almeida