Changeset 17304 for trunk/Mars/mcore/ofits.h
- Timestamp:
- 10/22/13 10:24:02 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mcore/ofits.h
r17298 r17304 13 13 #include <stdexcept> 14 14 15 #define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) 16 15 17 #ifdef __CINT__ 16 18 #define off_t size_t … … 95 97 96 98 //transform(key.begin(), key.end(), key.begin(), toupper); 97 99 #if GCC_VERSION < 40603 100 for (std::string::const_iterator c=key.begin(); c<key.end(); c++) 101 #else 98 102 for (std::string::const_iterator c=key.cbegin(); c<key.cend(); c++) 103 #endif 99 104 if ((*c<'A' || *c>'Z') && (*c<'0' || *c>'9') && *c!='-' && *c!='_') 100 105 { … … 116 121 comment = Trim(comment); 117 122 123 #if GCC_VERSION < 40603 124 for (std::string::const_iterator c=key.begin(); c<key.end(); c++) 125 #else 118 126 for (std::string::const_iterator c=key.cbegin(); c<key.cend(); c++) 127 #endif 119 128 if (*c<32 || *c>126) 120 129 { … … 587 596 588 597 static const std::string allow("LABIJKEDQ"); 598 #if GCC_VERSION < 40603 599 if (std::find(allow.begin(), allow.end(), typechar)==allow.end()) 600 #else 589 601 if (std::find(allow.cbegin(), allow.cend(), typechar)==allow.end()) 602 #endif 590 603 { 591 604 std::ostringstream sout; … … 610 623 if (addHeaderKeys) 611 624 { 625 #if GCC_VERSION < 40603 626 const std::string nc = std::to_string((long long int)(fTable.num_cols)); 627 #else 612 628 const std::string nc = std::to_string(fTable.num_cols); 613 629 #endif 614 630 SetStr("TFORM"+nc, type.str(), "format of "+name+" "+CommentFromType(typechar)); 615 631 SetStr("TTYPE"+nc, name, comment);
Note:
See TracChangeset
for help on using the changeset viewer.