
11 Aug
2011
11 Aug
'11
2:15 p.m.
Soares Chen Ruo Fei wrote:
you can assume the class to have the following signature with identical functionality:
<typename StringT> class unicode_string_adapter : public std::shared_ptr<const StringT>;
What is your rationale for that? What precedent is there for a wrapper/adapter/facade that behaves like a pointer to the wrapped object? I'm not aware of any precedents; this is a new pattern to me. Why have you chosen to do this, rather than providing an accessor member like impl()? Regards, Phil.