Specialization in templates

Gabriel Dos Reis Gabriel.Dos-Reis@dptmaths.ens-cachan.fr
Fri Oct 30 10:38:00 GMT 1998


>>>>> «JPP», Jean-Michel Paris <Jean-Michel.Paris@pt.nce.sita.int> wrote:


[...]

JPP> struct  A<int>
JPP> {
JPP>     // Default Constructor.
JPP>     A( void ) { cout << "Specialization A" << endl ; }
JPP> } ;

This code should not compile. There is a miising "template <>" just
before struct A<int> 

-- Gaby



More information about the Gcc mailing list