Issues with setfill in a member function
<p>I am trying to create a program over multiple files that reads out the time, but I am having trouble displaying the time in the desired format. More specifically, <code>setfill</code> appears to be causing me problems. </p>

<p>Here is the beginning of a very long error messages I recieve when compiling:</p>

<pre><code>error: no match for ‘operator&lt;&lt;’ in ‘std::operator&lt;&lt; [with _CharT = char, 
_Traits = std::char_traits&lt;char&gt;](((std::basic_ostream&lt;char, 
std::char_traits&lt;char&gt; &gt;&amp;)(&amp; std::cout)), std::setw(2)) &lt;&lt; std::setfill 
[with _CharT = const char*](((const char*)"0"))’
</code></pre>

<p>Now, this message only appears when I have <code>setfill</code> in my member function. If I remove <code>setfill</code> there is no issues with output except the format is wrong. </p>

<p>The member function is:</p>

<pre><code>Void Time::print()
{
    cout &lt;&lt; setw (2) &lt;&lt; setfill ("0") &lt;&lt; hours &lt;&lt; ":";
    cout &lt;&lt; setw (2) &lt;&lt; setfill ("0") &lt;&lt; minutes &lt;&lt; ":";
    cout &lt;&lt; setw (2) &lt;&lt; setfill ("0") &lt;&lt; seconds &lt;&lt; endl;
}
</code></pre>

<p>To be clear, I have included <code>iomanip</code> and <code>setw</code> has no problem working on its own.</p>

<p>Thanks.</p>
