$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Markus Schöpflin (markus.schoepflin_at_[hidden])
Date: 2002-09-18 10:28:55
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