comparison Framework/Loaders/DicomStructureSetLoader.cpp @ 842:2b245953b44b

removed some c++11 for older compilers
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 12 Jun 2019 09:52:25 +0200
parents 266e2b0b9abc
children 401808e7ff2e
comparison
equal deleted inserted replaced
841:266e2b0b9abc 842:2b245953b44b
92 lookup[0]["ID"].type() != Json::stringValue || 92 lookup[0]["ID"].type() != Json::stringValue ||
93 lookup[0]["Type"].asString() != "Instance") 93 lookup[0]["Type"].asString() != "Instance")
94 { 94 {
95 std::stringstream msg; 95 std::stringstream msg;
96 msg << "Unknown resource! message.GetAnswer() = " << message.GetAnswer() << " message.GetAnswerHeaders() = "; 96 msg << "Unknown resource! message.GetAnswer() = " << message.GetAnswer() << " message.GetAnswerHeaders() = ";
97 for (const auto& it : message.GetAnswerHeaders()) 97 for (OrthancRestApiCommand::HttpHeaders::const_iterator it = message.GetAnswerHeaders().begin();
98 it != message.GetAnswerHeaders().end(); ++it)
98 { 99 {
99 msg << "\nkey: \"" << it.first << "\" value: \"" << it.second << "\"\n"; 100 msg << "\nkey: \"" << it->first << "\" value: \"" << it->second << "\"\n";
100 } 101 }
101 auto msgStr = msg.str(); 102 const std::string msgStr = msg.str();
102 LOG(ERROR) << msgStr; 103 LOG(ERROR) << msgStr;
103 throw Orthanc::OrthancException(Orthanc::ErrorCode_UnknownResource); 104 throw Orthanc::OrthancException(Orthanc::ErrorCode_UnknownResource);
104 } 105 }
105 106
106 const std::string instanceId = lookup[0]["ID"].asString(); 107 const std::string instanceId = lookup[0]["ID"].asString();