Boost logo

Boost :

From: Alkis Evlogimenos (alkis_at_[hidden])
Date: 2002-10-14 10:56:59


bind_test fails with this error on linux:

/tmp/boost/boost/libs/bind/bind_test.cpp: In function `void
function_object_test()':
/tmp/boost/boost/libs/bind/bind_test.cpp:193: template argument 1 is invalid

    /opt/gcc2/bin/g++ -c -Wall -ftemplate-depth-100 -g -O0 -fno-inline
-I"../status" -isystem "/tmp/boost/boost" -o
"../status/bin/bind_test.test/gcc2953/debug/runtime-link-dynamic/bind_test.o"
"/tmp/boost/boost/libs/bind/bind_test.cpp"

Apparently 'void' is not a valid template argument for this compiler :-)

Adding this compiler to the failing ones does the trick:

Index: libs/bind/bind_test.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/bind/bind_test.cpp,v
retrieving revision 1.12
diff -r1.12 bind_test.cpp
191c191
< #if !defined(__MWERKS__) || (__MWERKS__ > 0x2406) // Fails for this
version of the compiler.

---
> #if (!defined(__MWERKS__) || (__MWERKS__ > 0x2406)) && (!defined(__GNUC__) 
|| (__GNUC__ > 2)) // Fails for these versions of the compilers.
-- 
Alkis

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