"Eric Woodruff" <[EMAIL PROTECTED]> writes:

[...]

| Here's a question: Since h.storage is _meant_ to be accessed by those that
| do not know the type of the object inside, shouldn't it have been designed

I'm afraid the above is not an accurate description of the purpose of
holder<T>. 

One primary purpose is to allow static or automatic *storage*
allocation for a T, suitably aligned.

| as a void* in the first place? This has two benefits (and I've recently had
| the epiphany of why void* is ok):

Because that won't permit static or automatic storage allocation for a T.

-- Gaby
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to