Template params in C++ functions

Piotr Nestorow Piotr.Nestorow@telelogic.se
Thu Oct 29 06:59:00 GMT 1998


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




More information about the Gcc mailing list