Re: comparing function pointer with int does not produce error
On Wed, Oct 24, 2001 at 09:15:00AM +0200, Martin v. Loewis wrote:
> > I don't think you're arguing the right side. Look at my message - I
> > don't know what the poster did, but _MY_ installed g++ v3.0 declares it
> > invalid.
>
> And I assume everybody else's does so, as well: on my system, both g++
> 2.95 and 3.1 20011009 complain about your code (where the constant is
> 4), and accept the code of the poster (where the constant is 0).
>
> So it has always been this way, for a reasonable definition of "always".
Oops. I understand what's going on now; thanks.
> Welcome to C++.
....
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer
Reply to: