> In my opinion, tfunc_t is a pointer to function, not reference. This
> is because the function name (without a context) is a pointer to
> that function, not a reference. If I am wrong, please, let me know.
You are wrong. tfunc_t is neither of type "pointer to function" nor of
type "reference to
Ugh, sorry for late answer. I was ill and thinked about this subject.
"Martin v. Loewis" wrote:
> > Please answer somebody wether it is a bug and wether I should submit it to
> > GNATS.
>
> I believe this is not a bug, because there are no const-qualified
> function types in C++.
>
> If you don'
> Please answer somebody wether it is a bug and wether I should submit it to
> GNATS.
I believe this is not a bug, because there are no const-qualified
function types in C++.
If you don't agree, please let us known what you think the value of
TFunc is. IMO, the only reasonable assumption is that
Hello there.
Seems like I've discovered a bug in g++-3.0 (or, at least, g++-2.95).
The following code is rejected by g++-3.0:
template
void tpl_func (const TFunc& func)
{
return;
}
static bool compare_ints (int a, int b)
{
return (a < b);
}
4 matches
Mail list logo