Boost logo

Boost Users :

From: Lothar Werzinger (lothar_at_[hidden])
Date: 2008-06-12 16:04:03


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

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net