How do I convert a reference to a pointer correctly?
<p>how do I convert a reference to a pointer correctly?</p>

<p>The code below gives me the following warning: "taking address of temporary".</p>

<pre><code>MyClass myclass;

vector&lt;MyClass*&gt; myClassList;

myClassList.push_back(&amp;myclass);

MethodThatsNeedsVectorOFMyClassPointers(myClassList);
</code></pre>
