title: Portable end of line
body: <p>is there any way to automatically use correct EOL character depending on the OS used?</p>
  
  <p>I was thinking of something like <code>std::eol</code>?</p>
  
  <p>I know that it is very easy to use preprocessor directives but curious if that is already available.</p>
  
  <p>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 <code>std::stringstream &lt;&lt; endl</code> but it seems to be an overkill sometimes instead of a regular append.</p>