This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Specialization in templates
- To: Jean-Michel Paris <Jean-Michel dot Paris at pt dot nce dot sita dot int>
- Subject: Re: Specialization in templates
- From: Gabriel Dos Reis <Gabriel dot Dos-Reis at dptmaths dot ens-cachan dot fr>
- Date: 30 Oct 1998 18:15:50 +0100
- Cc: Matthias Seeger <un9i at rz dot uni-karlsruhe dot de>, egcs at cygnus dot com
- References: <E0zYHAk-0002lz-00@rzstud1.rz.uni-karlsruhe.de> <36389325.5810285A@pt.nce.sita.int>
>>>>> «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