SIRIUS icon indicating copy to clipboard operation
SIRIUS copied to clipboard

Enhancement/output

Open toxa81 opened this issue 2 years ago • 2 comments

toxa81 avatar May 04 '22 21:05 toxa81

bors try

toxa81 avatar Jun 13 '22 17:06 toxa81

try

Timed out.

bors[bot] avatar Jun 15 '22 13:06 bors[bot]

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?

simonpintarelli avatar Nov 22 '22 18:11 simonpintarelli

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.

toxa81 avatar Nov 22 '22 18:11 toxa81

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 avatar Nov 22 '22 19:11 simonpintarelli

@simonpintarelli We can discuss what you proposed in this PR: https://github.com/electronic-structure/SIRIUS/pull/785

toxa81 avatar Nov 25 '22 09:11 toxa81