This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
g++ template instantiation warnings?
- To: egcs at cygnus dot com
- Subject: g++ template instantiation warnings?
- From: brendt at dip dot ee dot uct dot ac dot za (Brendt Wohlberg)
- Date: Tue, 16 Dec 1997 10:29:21 -0200
- Reply-To: egcs at cygnus dot com
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