$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Jeffrey Faust (jefffaust_at_[hidden])
Date: 2007-05-22 20:39:29
Joe Gottman wrote:
>
> If I want to see the result of an optional, I often write code that
> looks like the following:
>
> optional<int> opt;
> /// Time passes...
> if (opt) {
> const int &i = *opt;
>
>
> Then I can just watch i. I do the same thing with iterators, especially
> into sets and maps.
>
> Joe Gottman
That's a technique I use, but it's intrusive. I use boost::optional like
a value type. I'd like it to be as transparent to the debugger as the
type it wraps. My coworkers have also expressed this issue when I started
using boost::optional in our code.
Is there anybody out there besides me that would find this useful? If
not, I'm happy to drop it. I can always implement it locally for our own
use.
Jeff