|
Boost : |
From: Jeffrey Faust (jefffaust_at_[hidden])
Date: 2007-05-23 19:39:56
David Deakins wrote:
>
> Hi Jeff,
>
> We have a handful of VS2005 visualizers for boost types. Here's what we
> use for boost::optional. Try plugging this into the [Visualizers]
> section of your autoexp.dat and see if it is the kind of thing you are
> looking for:
>
> boost::optional<*>{
> preview
> (
> #if( !$c.m_initialized )
> (
> #( "Uninitialized" )
> )
> #else
> (
> #( *($T1*)&$c.m_storage.dummy_.data[0] )
> )
> )
> }
Dave, you have made my day. This is exactly what I need. It works
perfectly!
Now, how do people feel about an update to the documentation with this
debugger-specific nugget? Do other debuggers have similar facilities?
Jeff
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk