|
Boost : |
From: Phil Bouchard (philippe_at_[hidden])
Date: 2008-03-17 06:03:55
"Steven Watanabe" <watanabesj_at_[hidden]> wrote in message
news:47D9554B.9000003_at_providere-consulting.com...
[...]
> roofof /does/ use undefined behavior.
> You can't just go dereferencing the null pointer...
>
> ((T *)(0)->* q)
Until offsetof() gets standardized:
- I have changed the code for the following:
((T *)(alignment_of<detail::max_align>::value)->* q)
And made the following changes:
- I have prefixed sh::list & sh::stack with "intrusive_"
- Simplified "owned_base::last" type with "std::stack<owned_base::owned_base
*>"
-Phil
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk