Commit 6c118ebc authored by 1Hyena's avatar 1Hyena

Changed ostringstream to ostream for new print_params and added the old

version of print_params for backwards compatibility.
parent dfdb0938
......@@ -79,14 +79,19 @@ T get_param(const IndexParams& params, std::string name)
}
}
inline void print_params(const IndexParams& params, std::ostringstream& stream)
inline void print_params(const IndexParams& params, std::ostream& stream)
{
IndexParams::const_iterator it;
for(it=params.begin(); it!=params.end(); ++it) {
stream << it->first << " : " << it->second << std::endl;
}
}
inline void print_params(const IndexParams& params)
{
print_params(params, std::cout);
}
}
......
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