This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Non-template-friend warning.
- To: gcc at gcc dot gnu dot org
- Subject: Non-template-friend warning.
- From: Jacek Generowicz <jmg at ecs dot soton dot ac dot uk>
- Date: Wed, 14 Feb 2001 12:38:42 +0000 (GMT)
When compiling C++ code one may get warnings of the type:
warning: friend declaration ` ****** '
warning: declares a non-template function
warning: (if this is not what you intended, make sure
warning: the function template has already been declared,
warning: and add <> after the function name here)
warning: -Wno-non-template-friend disables this warning.
Is there a way of signalling that, in a particular case, the
non-template nature of the friend is intended ? In other words, can
the warning be suppressed for SPECIFIC cases rather than
indiscriminantly ?
Thanks,
Jacek