Reference of a function return value
<p>Suppose I have something like this</p>

<pre><code>  class HandleInterface {
        GLuint handle_;
    protected:
        void SetHandle( GLuint i ) {
            handle_ = i;
        }

    public:
        GLuint GetHandle() const {
            return handle_;
        }

        virtual ~HandleInterface() {}
};
</code></pre>

<p>Buw now I need the reference of handle_.</p>

<pre><code>// I would need &amp;handle_
glGenBuffers( 1,&amp;handle_ );
</code></pre>

<p>Do I need to write another getter for my <code>handle_</code>? Or how would get the reference of <code>handle_</code> from my getter method?</p>

<p>Also <code>glGenBuffers</code> somehow violates my <code>SetHandle</code> method because it should only set <code>handle_</code> though the <code>SetHandle</code> method and not though an reference. Any Ideas how I can avoid this?</p>
