Boost logo

Boost Users :

From: David Abrahams (dave_at_[hidden])
Date: 2006-06-17 18:53:19


Pierre THIERRY <nowhere.man_at_[hidden]> writes:

> Hi,
>
> I've googled for web pages and groups, but I didn't even find anyone
> *asking* that question:
>
> How can I debug data structures using aligned storage?
>
> It's very practical to use a graphical debugger like DDD to browse data
> structures like linked lists or trees. But aligned storages, as used by
> boost::variant, are opaque to the debugger.

Usually, in the debugger, you cast the base address of the actual
storage to a pointer to the type stored, and go from there.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net