taking address of temporary while accessing address of a element in vector<bool>
<p>I am getting the warning only while accessing address of element in vector of bool.
For vector of other data types like int i don't get any warning.</p>

<p>eg </p>

<pre><code>vector&lt;bool&gt; boolVect;
boolVect.push_back(false);
if (boolVect.size() &gt; 0) {
    cout &lt;&lt; &amp;boolVect[0] &lt;&lt; endl;
}   
</code></pre>

<p>I get warning "taking address of temporary" at statement "cout &lt;&lt; &amp;boolVect[0] &lt;&lt; endl;"
<br>
Can someone please clarify?</p>
