title: Can I make std::pair of two std::ostream-s?
body: <p>I'd like to make a pair containing two <code>std::ostream</code> object. I need this so that I can pass a single object to various functions instead of two <code>std::ostream</code> objects. I was hoping I could do <a href="https://godbolt.org/z/qsfKqr" rel="noreferrer">this</a>:</p>
  <pre class="lang-cpp prettyprint-override"><code>#include &lt;iostream&gt;
  #include &lt;ostream&gt;
  
  using namespace std;
  
  int main(){
  
      std::ostream output( std::cout.rdbuf());
      std::ostream error(std::cout.rdbuf());
  
      using Logger = std::pair&lt; std::ostream, std::ostream &gt;;
      Logger logger = std::make_pair( output, error );
  
    return 0;
  }
  </code></pre>
  <p>But I get a compiler error that there isn't a matching constructor for <code>pair&lt;std::basic_ostream&lt;char&gt;, std::basic_ostream&lt;char&gt; &gt;</code></p>