diff --git a/sp_techniques.html b/sp_techniques.html index d41be4b..e046275 100644 --- a/sp_techniques.html +++ b/sp_techniques.html @@ -519,6 +519,9 @@ public: } } +

Note that you no longer need to manually initialize the weak_ptr member + in enable_shared_from_this. + Constructing a shared_ptr to impl takes care of that.

Using shared_ptr as a smart counted handle

Some library interfaces use opaque handles, a variation of the incomplete class technique described above. An example: