$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-01-12 10:23:06
> 1. Why the separate Storage and Ownership policies?
>
> 2. How are threading issues addressed? I see RefCountedMT but it doesn't
> have the proper "template <class> class OwnershipPolicy" signature so it
> cannot be used, am I missing something?
>
> 3. Why are GetImpl*, Reset, Release free friends and not members?
I can answer the last one. Andrei makes a good argument in MC++D:
class Printer {
...
public:
Release();
};
SmartPtr<Printer,...> p(new Printer);
...
p->Release(); // oops, meant p.Release() !