Boost logo

Boost :

From: Jeffrey Faust (jefffaust_at_[hidden])
Date: 2007-05-22 20:11:35

Mathias Gaunard wrote:

> 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.

For the same reason I'd like to see values of ints or doubles. It's not
because I don't trust boost::optional, but because I simply want to see
the value.

>> 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.

I'm not sure I follow. Where would this alternative implementation go?
Wouldn't this kill performance?


Boost list run by bdawes at, gregod at, cpdaniel at, john at