help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Converting MSVC -> gcc -- template errors


From: Paul Pluzhnikov
Subject: Re: Converting MSVC -> gcc -- template errors
Date: Sun, 20 May 2007 20:43:33 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux)

Julian Mensch <jmensch@shaw.ca> writes:

> template Array<Field,10,5>;                       /* Map::Fields */

Correct syntax for this is:

  template class Array<Field,10,5>;

> gcc chokes on this code, probably because it's not
> truly correct C++ practice

The practice is ok, but the syntax is wrong.

In the future please post a complete example, not random snippet
which needs "fix-up" before the syntax error you get can be observed.

Cheers,
-- 
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]