[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: pointer to function. why doesn't this compiler
From: |
2boxers |
Subject: |
Re: pointer to function. why doesn't this compiler |
Date: |
Thu, 27 May 2004 17:51:23 -0400 |
>Either don't use using namespace std a./o. put your stuff into a separate
>namespace (you know what namespaces are good for now ;-) ) or use a
>different naming scheme like minus_( ... ) of minus_fp( ... ).
>
>The namespace solution is the most flexible, though,
>Juergen
Thank you.
You are 100% correct.
Had the compiler (gcc-3.4.0) given a correct error message regarding
the naming conflict, I would have realized this. (gcc-3.2.2) did
correctly report the use of minus as ambiguous where gcc-3.4.0 stated
that minus was undeclared which is just wrong.
ChasW