Problems with template template parameter

Alexander Helm helm@sim.tu-darmstadt.de
Tue Dec 17 04:20:00 GMT 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

After reporting a bug, people helped me and told me, that std::Matrix
(instead of Matrix) is the solution.

	CU
	Alexander

Oliver Kullmann wrote:
| Hi,
|
| your case looks pretty clear to me: The template template parameter C
| for the class template Matrix_Base has two parameters, while for the
| specialisation
|
| template<int rows>
| class Matrix<rows,1> : public Matrix_Base<rows,1,Matrix>
|
| you supply it with an actual parameter, which in this context
| has only one template parameter.
|
| As far as I know, the Standard demands that the number of template
| template parameter must exactly match. Thus I guess that version 2.95
| was simply too sloppy.
|
| Oliver
|
| [...]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE9/gvIdcrm1qkhaakRAqpNAKCKrs1+Y8b5fL8ks1ECAIwkiMUGtwCeKYmh
k+HpFfBhyf7ZDLVS+IwZu2I=
=+gSL
-----END PGP SIGNATURE-----



More information about the Gcc-help mailing list