Boost logo

Boost :

From: Larry Evans (cppljevans_at_[hidden])
Date: 2007-08-20 13:48:44


On 08/04/2006 04:54 PM, Doug Gregor wrote:
> Hello Fellow Boosters,
>
> I have just completed implementing support for "Variadic Templates"
> in GCC. Variadic templates are C++ templates that can accept any
> number of "extra" template arguments, just like a function that uses

The following may be important in the future for the test library
maintainers:

After building/installing the 20070817 snapshot:

ftp://gcc.gnu.org/pub/gcc/snapshots/4.3-20070817/

and running a test, I got:

/home/evansl/download/gcc/4.3-20070817/install/bin/g++
-I/home/evansl/prog_dev/boost-svn/ro/sandbox-branches/boost-cmake/src
-g -o framework.o -c
/home/evansl/prog_dev/boost-svn/ro/sandbox-branches/boost-cmake/src/libs/test/src/framework.cpp
In file included from
/home/evansl/prog_dev/boost-svn/ro/sandbox-branches/boost-cmake/src/boost/test/impl/framework.ipp:28,
                  from
/home/evansl/prog_dev/boost-svn/ro/sandbox-branches/boost-cmake/src/libs/test/src/framework.cpp:16:
/home/evansl/prog_dev/boost-svn/ro/sandbox-branches/boost-cmake/src/boost/test/test_tools.hpp:
In function â??boost::test_tools::predicate_result
boost::test_tools::tt_detail::bitwise_equal_impl(const Left&, const
Right&)â??:
/home/evansl/prog_dev/boost-svn/ro/sandbox-branches/boost-cmake/src/boost/test/test_tools.hpp:567:
error: â??CHAR_BITâ?? was not declared in this scope
make

(BTW, I haven't yet tracked down the reason for the odd characters.)

I *think* I tracked down the problem to a difference between:

*/c++/4.1.2/bits/stl_algobase.h

and:

*/c++/4.3.0/bits/stl_algobase.h

The 4.1.2 contained:

#include <bits/c++config.h>
#include <cstring>
#include <climits>
#include <cstdlib>
#include <cstddef>

but the 4.3 contained:

#include <bits/c++config.h>
#include <cstddef>
#include <bits/functexcept.h>

The <climits> #includes <limits.h> which defines CHAR_BIT.


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