> > assuming that every operator() call of CachedPtr
> > has identical behaviour.
>
> Responding to just this part of the comment (not the MP): it is hard to ensure
> this as users of Mir can override these calls.
Hm I thought I would be safe from that kind of abuse by making the CachedPtr private - but it still felt like a hack so I did not do it.
> > assuming that every operator() call of CachedPtr
> > has identical behaviour.
>
> Responding to just this part of the comment (not the MP): it is hard to ensure
> this as users of Mir can override these calls.
Hm I thought I would be safe from that kind of abuse by making the CachedPtr private - but it still felt like a hack so I did not do it.