Boost logo

Boost :

From: Markus Schöpflin (markus.schoepflin_at_[hidden])
Date: 2002-09-26 02:41:12


As noone replied so far, I'm assuming that the message was probably
missed. Could anyone tell me if my analysis of the problem is correct?
If yes, I can provide a patch that fixes this.

Markus Schöpflin wrote:

> Hello,
>
> I finally figured out why the regression test for boost.thread didn't
> compile on vacpp 5.
>
> The problem is with tests of the form:
>
> BOOST_CHECK_EQUAL(boost::xtime_get(&xt, boost::TIME_UTC),
> boost::TIME_UTC);
>
> This gets expanded to something that uses the type of the arguments
> as a template parameter.
>
> The problem is that boost::TIME_UTC is an unnamed enum and vacpp 5
> (rightly? I think yes.) complains, that unnamed types must not be
> used as a template argument.
>
> The fix is easy, change everything like the above to
>
> BOOST_CHECK_EQUAL(boost::xtime_get(&xt, boost::TIME_UTC),
> static_cast<int>(boost::TIME_UTC));
>
> et voila, the thread regression tests compile and execute ok.
>
> Markus


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