Archived issue #0012146
Package WNT: Compilation problems under Visual Studio 8.0
Description
There is a common problem in WNT package:
for (int i = 0; ...; ...) {
...
}
i++;
This code violates standard C++ behaviour: the loop iterator variable goes out
of scope at the closing brace of the for-block. However this was allowed in
Microsoft C++ extensions prior to 8.0. In the last version it is required to
modify the source. The alternative (using /Zc:forScope-) does not appear
justified for OCCT because it would preserve the portability problem.
for (int i = 0; ...; ...) {
...
}
i++;
This code violates standard C++ behaviour: the loop iterator variable goes out
of scope at the closing brace of the for-block. However this was allowed in
Microsoft C++ extensions prior to 8.0. In the last version it is required to
modify the source. The alternative (using /Zc:forScope-) does not appear
justified for OCCT because it would preserve the portability problem.
Additional information
Documentation remark, added by Author 2006-04-21 12:25:20:
Improvements:
Improved compatibility with ANSI C++
Modified entities:
package WNT
Improvements:
Improved compatibility with ANSI C++
Modified entities:
package WNT
Public activity
No public notes
Participants are labeled by their role within this record.