[mmitchell@usa.net: Specialization Patch]

Yotam Medini yotamm@tmai.com
Fri Oct 17 15:25:00 GMT 1997


The specialization fix  of Mark Mitchell's
did not make it to the 971016 version.
I hope it is not lost. I still miss my specialization function
with or without the new 
   template<>
syntax.

// The string::erase functions are in! thanks!
-- yotam

------- Start of forwarded message -------

Return-Path: <owner-egcs-bugs@cygnus.com>
Date: Wed, 15 Oct 1997 22:26:08 -0700
From: Mark Mitchell <mmitchell@usa.net>
To: Yotam Medini <yotamm@tmai.com>
Cc: egcs-bugs@cygnus.com, Jason Merrill <jason@cygnus.com>
Subject: Specialization Patch


Yotam --

  Here's a fix (I think) for your bug:

   template<class T>
   class C
   {
    public:
      static const char* say();
   };

   template <>
   const char* C<int>::say()
   { return "I am int";  }

   template <>
   const char* C<float>::say()
   { return "I am float";  }

  Both functions are now defined in the object file.

- -- 
Mark Mitchell		mmitchell@usa.net
Stanford University	http://www.stanford.edu

Wed Oct 15 22:21:53 1997  Mark Mitchell  <mmitchell@usa.net>

....
patch was here
...



More information about the Gcc-bugs mailing list