This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Template params in C++ functions
- To: egcs-bugs at cygnus dot com, egcs at cygnus dot com
- Subject: Template params in C++ functions
- From: Piotr Nestorow <Piotr dot Nestorow at telelogic dot se>
- Date: Thu, 29 Oct 1998 14:07:31 +0100 (MET)
When there will be support for C++ functions with template params
in egcs?
Example:
---------
template <class ListType>
void DeleteList (ListType *list) {
ListType::ElementType *e;
while ((e = list->GetFirst()) != NULL) {
list->Remove (e);
delete e;
}
}
The above works in g++-2.7.2 but
not in g++-2.8.1 or g++-egcs1.1.
Regards,
Piotr Nestorow
Piotr.Nestorow@telelogic.se
Telelogic AB