g++ template instantiation warnings?

Brendt Wohlberg brendt@dip.ee.uct.ac.za
Tue Dec 16 00:28:00 GMT 1997

Is there a a -W option, or some other method, of switching off the warnings:

warning: friend declaration `void swap(class A<T> &, class A<T> &)'
warning: will not be treated as a template instantiation
warning: unless you compile with -fguiding-decls
warning: or add <> after the function name

for friend declarations *without* turning them into template instantiations
(when compiling with -fno-implicit-templates, for example)?

 Brendt Wohlberg                       E-mail: brendt@dip.ee.uct.ac.za
 Department of Electrical Engineering  Phone : +27 21 650 3466
 University of Cape Town               Fax   : +27 21 650 3465

More information about the Gcc mailing list