title: Changing std::endl to put out CR+LF instead of LF
body: <p>I'm writing a program on a Linux platform that is generating text files that will be viewed on, inevitably, a Windows platform.</p>
  
  <p>Right now, passing <code>std::endl</code> into a <code>ostream</code> generates the CR character only for newlines.  Naturally, these text files look wrong in MS Notepad.</p>
  
  <ol>
  <li>Is there a way to change <code>std::endl</code> such that it uses CR+LF for newline instead of LF?</li>
  <li>I know I could write my own custom manipulator, like <code>win_endl</code>, for generating my own newlines, but I use the <code>std::endl</code> symbol in a lot of places, and like many programmers, have a tendency to do the thing that requires the least work possible.  Could I simply overload <code>std::endl</code> to produce CR+LF, or is this a dumb idea for maintainability?</li>
  </ol>
  
  <p>NB:  I checked out <a href="https://stackoverflow.com/questions/1535922/c-change-newline-from-crlf-to-lf">this question</a>, but it's asking about going the other way, and the accepted answer seems rather incomplete.</p>