Why is variable automatically being passed by reference?
<p>I'm attempting to call a function in the ROOT plotting package that accepts three variables. The relevant section in my code is:</p>

<pre><code>int xwidth=0,ywidth=0;
Bool_t useangle=0;
vIt-&gt;GetBoundingBox(xwidth,ywidth,useangle);
</code></pre>

<p>where vIt is an iterator to an object with GetBoundingBox as a class member function. (Bool_t is just a typedef that ROOT uses).</p>

<p>Now, when I compile, I get the following error from g++:</p>

<pre><code>error: no matching function for call to ‘TText::GetBoundingBox(int&amp;, int&amp;, Bool_t&amp;)’
/home/bwhelan/Programs/MODIFIED//External/root/5.30.00/include/root/TText.h:57: note:   candidates are: virtual void TText::GetBoundingBox(UInt_t&amp;, UInt_t&amp;, Bool_t)
</code></pre>

<p>My question is why is useangle being passed by reference here, instead of by value? I simply cannot figure it out.</p>
