Problem with Boost.Thread and HP aCC
We are trying to compile Boost.Thread with HP aCC (with -AA option). In boost/function/function_base.hpp the compiler give us this error: Error 20: "function_base.hpp", line 37 # '<type name>' expected before '>'. template<bool> struct truth {}; We are using Boost 1.28.0. The line 37 in function_base.hpp has: template<bool> struct truth {}; We have found two ways to make it work: 1.- Comment out the line !! 2.- Replace with: template<bool a> struct truth {}; We think that the compiler is wrong but, is ok to comment this line? In earlier versions of this file this line doesn't exists, and it is never used, so it is necesary? Regards, Raúl.
Looks like this is my fault, sorry. Go ahead and comment out or remove the 'truth' class template, because it is just a remnant of an attempted compiler workaround (the code itself is legitimate, just not needed). I've removed it in the CVS version of Boost.Function. Thanks for reporting this. Doug On Wed, 29 May 2002, raulh39 wrote:
We are trying to compile Boost.Thread with HP aCC (with -AA option).
In boost/function/function_base.hpp the compiler give us this error:
Error 20: "function_base.hpp", line 37 # '<type name>' expected before '>'. template<bool> struct truth {};
We are using Boost 1.28.0.
The line 37 in function_base.hpp has: template<bool> struct truth {};
We have found two ways to make it work:
1.- Comment out the line !!
2.- Replace with: template<bool a> struct truth {};
We think that the compiler is wrong but, is ok to comment this line?
In earlier versions of this file this line doesn't exists, and it is never used, so it is necesary?
Regards, Ra�l.
Info: http://www.boost.org Wiki: http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl Unsubscribe: mailto:boost-users-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
participants (2)
-
Douglas Paul Gregor
-
raulh39