This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: g++: change in behaviour since gcc-2.95.2
- To: martin at MPA-Garching dot MPG dot DE
- Subject: Re: g++: change in behaviour since gcc-2.95.2
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Tue, 21 Dec 1999 13:48:03 +0100
- CC: gcc at gcc dot gnu dot org
- References: <385F559D.97D147C1@mpa-garching.mpg.de>
> Is this new behaviour according to the standard? If so, could you
> please point me to some information why pointers to functions cannot
> be used as template parameter types?
I'm not entirely sure, but I believe this is due to 14.8.2/2
# Type deduction may fail for the following reasons:
# ...
# - Attempting to create a cvqualified function type.
Of course, this is not exactly the right place, since we have no
explicit template arguments, but deduction. The apparent intent is
that it applies to the deduced arguments as well, since there are no
cv-qualified function types in C++.
Hope this helps,
Martin