Boost logo

Boost Users :

Subject: Re: [Boost-users] Syntax error when using BOOST_CHECK_PREDICATE
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2010-02-23 17:09:26


Andrew J. Leer <leeand00 <at> hotmail.com> writes:

> bool validate_list(std::list<int> &L1)
...

> BOOST_AUTO_TEST_SUITE( test )
> BOOST_AUTO_TEST_CASE( test )
> {
> std::list<int>* list1 = user_defined_func();
> BOOST_CHECK_PREDICATE( validate_list, (list1) );
> }
> BOOST_AUTO_TEST_SUITE_END()

No surprises here: can't pass pointer to the function expecting reference.

Gennadiy


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