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]

g++ template instantiation warnings?


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



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