Opened 12 years ago
Closed 10 years ago
#159 closed defect (fixed)
Mac compilation failure
Reported by: | normanb | Owned by: | hugueswski |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Library | Version: | svn-trunk |
Keywords: | Cc: |
Description
compilation on mac fails with
csEpsgStuff.cpp:2985:20: error: use of overloaded operator '==' is ambiguous
(with operand types 'TcsEpsgCode' and 'const ulong32_t' (aka 'const unsigned int'))
if (mthEpsgCode == prjTblPtr->epsg)
~~
Fix is to add
bool operator== (unsigned int epsgCode) const;
to class TcsEpsgCode in csepsgstuff.h and corresponding implementation in csEspgSupport.cpp
bool TcsEpsgCode::operator== (unsigned int epsgCode) const {
bool equal = (EpsgCode == epsgCode); return equal;
}
Change History (2)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Added the suggested fix, slightly modified. Compiles without warning on all 4 compilers that I have. I used to get a warning about this from the gcc compiler before the fix.
Submission of this fix produced revision 2450.
Thanks for calling attention to this defect. I'll get this implemented as soon as I can.