Returning data members of primitive types as a const reference?
<p>Example: I have a class named Class and it has a data members <strong>std::string m_name</strong> and <strong>int m_value</strong>.</p>

<p>To avoid unnecessary copies I do this.</p>

<pre><code>const std::string&amp; Class::name() const;
</code></pre>

<p>To make the functions consistent would it acceptable to do this for primitive types as well?</p>

<pre><code>const int&amp; Class::value() const;
</code></pre>
