Feature request #3919
'and' is undefined keyword in C++
Status: | Closed | ||
---|---|---|---|
Priority: | Low | ||
Assignee: | Gary Sherman | ||
Category: | Projection Support | ||
Pull Request or Patch supplied: | Resolution: | fixed | |
Easy fix?: | No | Copied to github as #: | 13943 |
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.
History
#1 Updated by Mateusz Loskot - almost 19 years ago
I fixed this bug. Patch is attached.
#2 Updated by Gary Sherman almost 19 years ago
- Resolution set to fixed
- Status changed from Open to Closed
Already fixed in HEAD
#3 Updated by Anonymous over 15 years ago
Milestone Version 0.8 deleted