Template specialisation
Nathan Sidwell
nathan@acm.org
Tue Nov 30 23:39:00 GMT 1999
Steven Coenen wrote:
>
> I have the following code :
>
> This code does not compile. The error message is :
> In function `void func(const aClass<bool> &)':
> `const class aClass<bool>' used where a `bool' was expected
> compiler : gcc-2.95 gcc-2.95.1 and gcc-2.95.2
> platforms : linux redhat 6.0 on a pentium II 366 Mhz
> solaris 2.7 on a sun ultra 5
> compile command : g++ file.C
The CVS version compiles this without error, so it should be fixed
in the next release.
nathan
--
Dr Nathan Sidwell :: Computer Science Department :: Bristol University
Never hand someone a gun unless you are sure where they will point it
nathan@acm.org http://www.cs.bris.ac.uk/~nathan/ nathan@cs.bris.ac.uk
More information about the Gcc-bugs
mailing list