Boost logo

Boost Users :

From: David Abrahams (dave_at_[hidden])
Date: 2006-06-18 16:36:20


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

> 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

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