delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/11/13/18:53:52

From: cloder AT ccs DOT neu DOT edu (Chad Loder)
Subject: Templates in gcc / Msvc++ 5
13 Nov 1997 18:53:52 -0800 :
Message-ID: <Pine.SUN.3.96.971113195324.13901A-100000.cygnus.gnu-win32@zoe.ccs.neu.edu>
Reply-To: cloder AT acm DOT org
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

Hello...I have been doing some messing around with partial specialization
of template classes in C++. The cygnus gcc compiled this without errors,
but MSVC++ 5.0 did not like it...does anyone know what the status of
templates in the respective compilers is (e.g., egcs, new versions, etc.)?

-chad

template<class T>
class common {
public:
};

template<class T>
class generic : public common<T> {
public:
};

template<class T>
class generic<T *> : public common<T*>{
public:
};



----------------------------------------------------
| Chad Loder - Somerville, MA, USA                 |
| EMail:     cloder AT acm DOT org                        |
| Home Page: http://www.ccs.neu.edu/home/cloder    |
----------------------------------------------------



-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019