title: Returning reference to local temporary object
body: <p>This code</p>
  
  <pre><code>virtual const core::matrix4&amp; getViewMatrixAffector() const {return core::matrix4();};
  </code></pre>
  
  <p>results with a warning telling me "Returning reference to local temporary object"...</p>
  
  <p>How to solve this warning?</p>
  
  <p>As mentioned below i tried to remove the '&amp;'...
  <img src="https://i.stack.imgur.com/IYr7l.png" alt="Error"></p>