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:
> 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 Werzinger Dipl.-Ing. Univ.
framework & platform architect
Tradescape Inc. - Enabling Efficient Digital Marketplaces
1754 Technology Drive, Suite 128
San Jose, CA 95110

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at