is there any way to automatically use correct EOL character depending on the OS used?
I was thinking of something like std::eol
?
I know that it is very easy to use preprocessor directives but curious if that is already available.
What I am interested in is that I usually have some messages in my applications that I combine later into a single string and I want to have them separated with a EOL. I know that I could use std::stringstream << endl
but it seems to be an overkill sometimes instead of a regular append.