can't pass pointers to template functions as arguments

Martin v. Loewis martin@mira.isdn.cs.tu-berlin.de
Sat Jul 31 23:33:00 GMT 1999


> Sender: vb@vega.inec.cz
> > safecall.cc: In function `TReturn SafeCall()':
> > safecall.cc:5: default argument for template parameter in function template `SafeCall()'

> I probably don't understand.

Please look at the first error first. The C++ standard says

  /* [temp.param] 

     A default template-argument shall not be specified in a
     function template declaration or a function template definition, nor
     in the template-parameter-list of the definition of a member of a
     class template.  */

If you fix this, gcc 2.95 will compile your code.

Regards,
Martin



More information about the Gcc-bugs mailing list