CDT 2.1 : BUG / Problem : "Report Semantic Problems" [message #133528] |
Wed, 05 January 2005 13:09 |
Eclipse User |
|
|
|
Originally posted by: an.nym.us
for(int nIndex = 0; nIndex < m_nIndex; nIndex++)
{
a[nIndex].m_p->DoSth();
}
for(int nIndex = 0; nIndex < m_nIndex; nIndex++)
{
a[nIndex].m_p->DoSthElse();
}
the nIndex in the second for Loop is reported as "invalid overload of the
name" is this correct ? As far as I know nIdnex only lives in the for loop
so there should be not such warning ? Or am I wrong ?
Thanks for your help.
|
|
|
Re: CDT 2.1 : BUG / Problem : "Report Semantic Problems" [message #133596 is a reply to message #133528] |
Wed, 05 January 2005 17:04 |
Eclipse User |
|
|
|
Originally posted by: mpinto.brturbo.com
You are right
--
Marcelo Pinto
"Sascha" <an@nym.us> escreveu na mensagem
news:crgotd$epk$1@www.eclipse.org...
> for(int nIndex = 0; nIndex < m_nIndex; nIndex++)
> {
> a[nIndex].m_p->DoSth();
> }
>
>
> for(int nIndex = 0; nIndex < m_nIndex; nIndex++)
> {
> a[nIndex].m_p->DoSthElse();
> }
>
> the nIndex in the second for Loop is reported as "invalid overload of the
> name" is this correct ? As far as I know nIdnex only lives in the for loop
> so there should be not such warning ? Or am I wrong ?
>
> Thanks for your help.
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.10927 seconds