C++ temporaries and constructors
<p>Why do some compilers complain about taking an address of a temporary from a constructor and some dont?</p>

<p>For example:</p>

<pre><code>WriteLine(&amp;String8("Exception"));
</code></pre>

<p>I'm assuming the complaining compiler is not storing that address on the stack and it will blow up if I ignore the warning.  Is there a way to get that to work in one line?  Is the best/only way a static method on the class that returns an address?  Hmm I don't think a static method on the String8 class that returns a pointer would work since it would save the String8 class to a register and then eat it in WriteLine()</p>
