
23 May
2007
23 May
'07
12:02 a.m.
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.