
3 May
2011
3 May
'11
7:52 p.m.
On Tue, May 3, 2011 at 6:57 PM, Robert Jones <robertgbjones@gmail.com> wrote:
I'd prefer to see it return a boost::optional<T&>
What's the benefit?
For containers of pointers to objects, the wrapper could do an
additional dereference.
Not a good idea, it's easier to compose than decompose so return a boost::optional<T*&> and the user deref if they want to.
What problem would that avoid? It'd require the user to do an additional check. Olaf