title: C++11 std::shared_ptr<std::ostream> from std::cout
body: <p>I'm having trouble storing <code>std::cout</code> in a <code>std::shared_ptr&lt;std::ostream&gt;</code>.</p>
  
  <p>Since this obviously shouldn't be done:</p>
  
  <pre><code>std::shared_ptr&lt;std::ostream&gt; p_cout(&amp;std::cout);
  </code></pre>
  
  <p>And this isn't even possible since it's not possible to copy a std::ostream:</p>
  
  <pre><code>std::shared_ptr&lt;std::ostream&gt; p_cout = std::make_shared&lt;std::ostream&gt;(std::cout);
  </code></pre>
  
  <p>Does someone know a legal workaround?</p>