title: std::stringstream as parameter
body: <p>I'm somewhat new to the C++ language. I'm writing a utility class for logging to file. It works beautifully except that now I would like to enhance it by making it more convenient to use (e.g. pass stringstreams to a log function). </p>
  
  <p>This is what I've been trying and it hasn't worked. </p>
  
  <p>definition:</p>
  
  <p><code>void LogStream( std::stringstream i_Log ){
  m_FileHandle &lt;&lt; i_Log &lt;&lt; std::endl; 
  }</code></p>
  
  <p>call:</p>
  
  <p><code>m_LogObject-&gt;LogStream( "MKLBSearchEngine::Search( " &lt;&lt; x &lt;&lt; ", " &lt;&lt; i_Filter &lt;&lt; " ) - No Results Found" );</code></p>