This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Specialization in templates


>>>>> «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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]