This is the mail archive of the gcc@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]

Template params in C++ functions



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



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