From: Gotthard, P. <Pet...@Ho...> - 2009-03-29 15:41:30
|
Hello, My gcc 4.1.2 says the operator[] below is ambiguous (std::string[] vs. const char*[]). The patch below fixed the issue. Please apply. Best Regards, Petr Index: src/ossim/support_data/ossimNitfInfo.cpp =================================================================== --- src/ossim/support_data/ossimNitfInfo.cpp (revision 14186) +++ src/ossim/support_data/ossimNitfInfo.cpp (working copy) @@ -137,8 +137,8 @@ if (ext.size() >= 2) { ext.upcase(); - result.push_back(ext[0]); - result.push_back(ext[1]); + result.push_back(ext[(std::string::size_type)0]); + result.push_back(ext[(std::string::size_type)1]); } return result; } |