C++ Pass by value/reference
<p>I have the following code snippet:</p>

<pre><code>vector&lt;DEMData&gt;* dems = new vector&lt;DEMData&gt;();
ConsumeXMLFile(dems);

if(!udp_open(2500))
{

}        
</code></pre>

<p>I want the ConsumeXMLFile method to populate the vector with DEMData objects built from reading an XML file.  When ConsumeXMLFile returns, the dems vector is empty.  I think I'm running into a pass by value problem.</p>
