
On Thursday 12 June 2008, Ion GaztaƱaga wrote:
Your test also raises the same error in Windows, and that's because you don't call the constructors of the hooks. Hooks have a constructor that put the hook in a safe state (so that it can be checked before inserting it). More on this on the documentation:
http://www.boost.org/doc/libs/1_35_0/doc/html/intrusive/safe_hook.html
Surely, memory will be initialized to zero when creating the file and zero is the safe state for raw pointers. On the other hand, offset pointers have a different default state (null is represented by offset == 1).
Thanks a lot. After inserting a placement new for every item the test works with offset_ptr; Lothar -- Lothar Werzinger Dipl.-Ing. Univ. framework & platform architect Tradescape Inc. - Enabling Efficient Digital Marketplaces 1754 Technology Drive, Suite 128 San Jose, CA 95110 web: http://www.tradescape.biz