|
Boost : |
From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-03-10 15:17:10
----- Original Message -----
From: "Rainer Deyke" <root_at_[hidden]>
> > > However, having lots of shared_ptrs
> > > keeping the cached objects alive defeats the purpose of the cache.
> >
> > Maybe your purpose. When I've needed a cache, I've needed some way
> to
> > prevent certain objects from being flushed.
>
> Why?
Because the objects were "currently in use" - essentially because they
were likely to be needed again soon, but also because they were
referenced by objects other than the cache.
-Dave
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk