How do you explicitly initialize a reference in c++?
<p>I have the following code:</p>

<pre><code>class SomeClass {};

class SomeOtherClass {
    SomeClass&amp; someObj;
public:
    SomeOtherClass() {someObj = SomeClass();}
};
</code></pre>

<p>And I get an error on the constructor for <code>SomeOtherClass</code> saying <code>Constructor for 'SomeOtherClass' must explicitly initialize the reference member 'someObj'</code>.</p>

<p>So I guess my question is pretty strait forward. How do you initialize a reference?</p>
