Subject: Re: [boost] Re : [Block Pointer] make_block
From: Phil Bouchard (philippe_at_[hidden])
Date: 2011-04-30 19:39:51
On 4/30/2011 12:31 AM, Pierre Morcello wrote:
> Instead of doing "cout", you could use a class like that :
> class ForTests
> static int counter; // incremented at each construction
> int id; // id = current value of the counter in the constructor
> static std::vector<int> destructionOrder;
> Each destruction pushes the id in the destructionOrder vector.
> Then at the end of the program you just need to compare the content of destructionOrder with what you should expect (and return 1 or 0). Also the same might be done for construction.
I added the automated test here:
I am having issues with the Jamfile but there's a Makefile which works well.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk