Boost logo

Boost :

From: Markus Schöpflin (markus.schoepflin_at_[hidden])
Date: 2002-09-18 10:28:55


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::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::xtime_get(&xt, boost::TIME_UTC),

et voila, the thread regression tests compile and execute ok.


Boost list run by bdawes at, gregod at, cpdaniel at, john at