Boost logo

Boost :

From: Philippe A. Bouchard (philippeb_at_[hidden])
Date: 2003-02-25 08:53:51


David Abrahams wrote:

[...]

> Once again, the case was:
>
> {
> aligned_storage<T>::type storage;
>
> new ((void*)&storage) T(x, y, z); // throws
>
> // ~aligned_storage<T>() destroys non-existent T
> }
>
> The question is not what happens if aligned_storage<T>::type throws.
> It will never throw, since it is POD. The question is what happens
> if T throws.
>
> If, as you say, you don't know much about EH, please do a little bit
> of research about how it works before you argue with me on this one
> :-)

Sorry about it. I'm going back into my books...

Philippe A. Bouchard


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk