#16 closed patch (fixed)
'and' is undefined keyword in C++
Reported by: | mloskot | Owned by: | gsherman |
---|---|---|---|
Priority: | critical: causes crash or data corruption | Milestone: | |
Component: | Projection Support | Version: | Trunk |
Keywords: | Cc: | ||
Must Fix for Release: | No | Platform: | Windows |
Platform Version: | XP Professional | Awaiting user input: | no |
Description
I noticed that in file qgis/src/widgets/projectionselector/qgsprojectionselector.cpp is used not real C++ keyword: and
In C++ it's reserved word but it's not supported - should not be used.
Here is what C++ Standard states in 2.11 Keywords chapter:
Furthermore, the alternative representations shown in Table 4 for certain operators and punctuators (2.5) are reserved and shall not be used otherwise:
Table 4: alternative representations and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq
VC++ does not support it. If GCC does, then please use -ansi switch (-pedantic is also recommended) to exclude such not portable extensions.
Attachments (1)
Change History (5)
by , 18 years ago
Attachment: | widgets-qgsprojectionselector.cpp-mloskot-20060314.patch added |
---|
comment:3 by , 17 years ago
Awaiting user input: | unset |
---|---|
Must Fix for Release: | → No |
Patch that fixes bug in this Ticket