Re: Fwd: [TSVN][PATCH]C++ standard compliant loop header scopes
From: Joseph Galbraith <galb_at_vandyke.com>
Date: 2005-08-19 20:44:10 CEST
>> --- TortoiseMerge/MainFrm.cpp (revision 4159)
Without more context, I can't tell for sure, but this
With the new rules, if i is declared as part of the for
So code that does something like:
for(int i = 0; i < arr.GetSize(); i++)
if ( i == arr.GetSize() )
// use arr[i] for something...
has to be changed as in the above exmple.
Thanks,
Joseph
---------------------------------------------------------------------
|
This is an archived mail posted to the TortoiseSVN Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.