can't take address of static template member funcion?

Alexandre Oliva oliva@dcc.unicamp.br
Mon May 25 15:06:00 GMT 1998


Corey Kosak <kosak@cs.cmu.edu> writes:

>> `cow().template func<int>' is not a qualified-id.

> Just to be perfectly clear, 'func' is a static member and therefore
> its address ought to be an ordinary function pointer.

Sure.  I hadn't noticed it was static, sorry.  In this case, your
code snippet is correct, and should be accepted.

-- 
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil




More information about the Gcc-bugs mailing list