On Thu, 23 Aug 2012 18:27:41 +0200, Nick Treleaven <[email protected]> wrote:

I'd be interested to see your Option code.

Here you go. After looking at your code, and with Modern C++ Design
fresh in mind, I see that match and hasValue might have worked better
as free functions.

I took the liberty of implementing the optional function calls
discussed earlier. If your eyes glaze over or you feel an urge to
kill, you are likely looking at that part of the code.

--
Simen

Attachment: Option.d
Description: Binary data

Reply via email to