From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-03-17 12:02:32
Phil Bouchard wrote:
> "Steven Watanabe" <watanabesj_at_[hidden]> wrote in message
>> 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)
How is that better?
> And made the following changes:
> - I have prefixed sh::list & sh::stack with "intrusive_"
You might look at Boost.Intrusive
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk