From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2007-05-22 20:02:01


Jeffrey Faust a écrit :
> My only complaint about boost::optional is that it is very difficult to
> see values in the debugger.

variant probably has the same problem.
I don't see why you would need to look at its content in the debugger
anyway, it's a pretty safe tool.

> Well, I have a patch. The change introduces a new private T* m_value
> and protected method update_debug() which sets this variable.

I think you should just provide an alternative implementation that uses
heap allocation instead of stack allocation.