Changed ostringstream to ostream for new print_params and added the old
version of print_params for backwards compatibility.
This commit is contained in:
@@ -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;
|
IndexParams::const_iterator it;
|
||||||
|
|
||||||
for(it=params.begin(); it!=params.end(); ++it) {
|
for(it=params.begin(); it!=params.end(); ++it) {
|
||||||
stream << it->first << " : " << it->second << std::endl;
|
stream << it->first << " : " << it->second << std::endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline void print_params(const IndexParams& params)
|
||||||
|
{
|
||||||
|
print_params(params, std::cout);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user