1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00:00

Hadrons: better string representation of module parameters

This commit is contained in:
Antonin Portelli 2018-04-04 17:19:22 +01:00
parent d3f857b1c9
commit ccfc0a5a89

View File

@ -256,12 +256,11 @@ void Module<P>::saveParameters(XmlWriter &writer, const std::string name)
template <typename P>
std::string Module<P>::parString(void) const
{
std::string xmlstring;
XmlWriter writer("","");
std::ostringstream s;
write(writer, par_.SerialisableClassName(), par_);
s << par();
return writer.string();
return s.str();
}
template <typename P>