Pierre THIERRY
Le Sun, 18 Jun 2006 05:31:53 -0400, Edward Diener a écrit :
What Dave suggested is standard information for anyone using a
debugger in C++. Putting that in the Boost documentation is
unnecessary.
Without using aligned storage, I do not see why anyone would have to
do such a cast to debug data structures... So it doesn't seem to me
to be standard in any way for C++.
I assume unions have the same problem. So does shared_ptr<void>. And void*. All that said, I'm sympathetic to your point of view.
BTW, is there any way for the debugger to know automatically what the
type the storage should be cast to?
Not without some extra-linguistic mechanism to tell it what type is stored. It would have to use some sort of debugger-specific hook. -- Dave Abrahams Boost Consulting www.boost-consulting.com