This is the mail archive of the gcc-help@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]
Other format: [Raw text]

Re: template behavior


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



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