Boost logo

Boost :

Subject: Re: [boost] [pool] Definition of a static_pool ?
From: Christopher Kormanyos (e_float_at_[hidden])
Date: 2012-04-30 11:45:37


>>> typedef std::array<volatile std::int32_t, 8> array_type; >>> array_type* pa = new(myhardware) array_type; >>> assert(&(*pa[0]) == myhardware); >>> ?? >>> HTH, John. >> Oh, that's easy. It seems obvious now, but I never got it. >> Thanks so much for the clarification, John and Olaf. >> It helps. > But did you spot the "deliberate" mistake?  ;-) Only now, after you mentioned it. Actually, I'm relived that it can happen to you too. > Should be > assert(&(*pa)[0] == myhardware); > John. Cool. Thanks, Chris.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk