This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: template behavior
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: Al Niessner <Al dot Niessner at jpl dot nasa dot gov>
- Cc: list gcc <gcc-help at gcc dot gnu dot org>
- Date: Tue, 16 Nov 2004 17:39:07 +0000
- Subject: Re: template behavior
- Organization: Codesourcery LLC
- References: <1100624038.28316.81.camel@morte.jpl.nasa.gov>
Al Niessner wrote:
Has template behavior changed because I could not find a matching
changing in the change log at gcc.gnu.org?
I have code (octave-forge source to be specific) which contains the line
template std::map<std::string,std::string>;
the standard mandates a declaration there, you need
template class std::map<std::string, std::string>;
[14.7.2] has all the gory details.
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk