1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-04-09 21:50:45 +01: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> template <typename P>
std::string Module<P>::parString(void) const std::string Module<P>::parString(void) const
{ {
std::string xmlstring; std::ostringstream s;
XmlWriter writer("","");
write(writer, par_.SerialisableClassName(), par_); s << par();
return writer.string(); return s.str();
} }
template <typename P> template <typename P>