fix more warnings

This commit is contained in:
Johann Dreo 2020-04-28 16:37:48 +02:00
commit 8ad56f7ad3
9 changed files with 26 additions and 25 deletions

View file

@ -192,16 +192,16 @@ public:
/**
* Print the structure of the topology on the standrad output.
*/
void printOn()
void printOn(std::ostream& out) const
{
for (unsigned i=0;i< neighborhoods.size();i++)
{
std::cout << "{ " ;
out << "{ " ;
for (unsigned j=0;j< neighborhoods[i].size();j++)
{
std::cout << neighborhoods[i].get(j) << " ";
out << neighborhoods[i].get(j) << " ";
}
std::cout << "}" << std::endl;
out << "}" << std::endl;
}
}