Boost logo

Boost :

Subject: Re: [boost] static in_class constants
From: Mateusz Loskot (mateusz_at_[hidden])
Date: 2010-03-13 16:17:09


Christian Henning wrote:
> Hi,
>
>> The BOOST_TEST_MAIN is required and it is only defined in test.cpp
>>
>> $ cat test.cpp
>> #define BOOST_TEST_MAIN
>> #include <boost/test/unit_test.hpp>
>
> I see what you mean. Is it problematic to define BOOST_TEST_MAIN more
> than once. I think that's reason I have it in test.cpp, only.

I suppose it should not be a problem, except redefinitions will be
warned about.

> When building all test you can run selected tests by given certain
> command line parameters. Of course, don't remember, right now, which
> one. ;-)

Sure. I build pnm_test.cpp only for purpose of isolation :-)

Best regards,

-- 
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org

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