Commit 78271a67 authored by Sam Mikes's avatar Sam Mikes
Browse files

Can't send bare stringstream to iostream; use .str()

parent be0205e3
...@@ -552,7 +552,7 @@ ForceValidationResult* ValidateOpenMMForces::compareForce(Context& context, std: ...@@ -552,7 +552,7 @@ ForceValidationResult* ValidateOpenMMForces::compareForce(Context& context, std:
if( forceName.compare( "NA" ) == 0 ){ if( forceName.compare( "NA" ) == 0 ){
std::stringstream message; std::stringstream message;
message << "Force at index=" << ii << " not found -- aborting!"; message << "Force at index=" << ii << " not found -- aborting!";
std::cerr << message << std::endl; std::cerr << message.str() << std::endl;
throw OpenMM::OpenMMException(message.str()); throw OpenMM::OpenMMException(message.str());
} }
systemForceNameMap[forceName] = ii; systemForceNameMap[forceName] = ii;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment