17 Jun
2006
17 Jun
'06
10:53 p.m.
Pierre THIERRY
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