void ClusterTree::overspillMessage(int overspill,int totalDists)
{
- std::stringstream ssOverSpill;
- ssOverSpill << overspill << " of the distances out of a total of " << totalDists
- << "\n were out of range for the distance correction." << "\n"
- << "\n SUGGESTIONS: 1) remove the most distant sequences"
- << "\n or 2) use the PHYLIP package"
- << "\n or 3) turn off the correction."
- << "\n Note: Use option 3 with caution! With this degree"
- << "\n of divergence you will have great difficulty"
- << "\n getting robust and reliable trees." << "\n\n";
+ std::ostringstream ssOverSpill;
+ std::ostringstream ssTotalDists;
string message;
- ssOverSpill >> message;
+
+ ssOverSpill << overspill;
+ message += ssOverSpill.str();
+ message += " of the distances out of a total of ";
+ ssTotalDists << totalDists;
+ message += ssTotalDists.str();
+ message += "\n were out of range for the distance correction.\n"
+ "\n SUGGESTIONS: 1) remove the most distant sequences"
+ "\n or 2) use the PHYLIP package"
+ "\n or 3) turn off the correction."
+ "\n Note: Use option 3 with caution! With this degree"
+ "\n of divergence you will have great difficulty"
+ "\n getting robust and reliable trees.\n\n";
+
clustalw::utilityObject->warning(message.c_str());
}