Boost logo

Boost :

Subject: Re: [boost] [test] Automatic registration of tests created with BOOST_PARAM_TEST_CASE
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2009-05-17 03:21:32


Jan Stolarek wrote:
>> Here an example that works fine:
> Awsome, thanks.
>
> By the way, I just run into another serious problem, his time with
> BOOST_CHECK_EQUAL_COLLECTIONS macro that compares values in two collections.
> When using STL it is very common that elements in the collection are not
> objects, but pointers to objects.

...

> I don't have the time at the moment, but I assume that replacing (
> *left_begin != *right_begin ) with (**left_begin != **right_begin) would
> solve the problem?

I guess it will. I recommend using boost::indirect_iterator instead.

Gennadiy


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