title: "ofstream" as function argument
body: <p>Is there a way to pass output stream as argument like </p>
  
  <p><code>void foo (std::ofstream dumFile) {}</code></p>
  
  <p>I tried that but it gave </p>
  
  <p><code>error : class "std::basic_ofstream&lt;char, std::char_traits&lt;char&gt;&gt;" has no suitable copy constructor</code></p>