SIRIUS
SIRIUS copied to clipboard
Enhancement/output
bors try
try
Timed out.
It doesn't make a difference, since it is not used in the code. But pstdout << "test"
will return an object of std::stringstream
and the same for rte::ostream
. I think not inheriting from std::stringstream
would be nicer and instead make these objects private members of the class and add pstdou& operator<<(const std::string&)
as member function.
Is pstdout::get
needed? E.g. can't it be included in pstdout::flush
?
I can make the changes according to your commens. The only caviat is that pstdou& operator<<(const std::string&)
is not enough, thare are format modifiers and things like std::endl. They also need to be handeled in the operator overload.
I can make the changes according to your commens. The only caviat is that
pstdou& operator<<(const std::string&)
is not enough, thare are format modifiers and things like std::endl. They also need to be handeled in the operator overload.
Sorry, you're right. Then perhaps it is best to leave it as it is, adding all those functionalities might be cumbersome.
@simonpintarelli We can discuss what you proposed in this PR: https://github.com/electronic-structure/SIRIUS/pull/785