title: Can I make a reference member no space taken?
body: <p>Is there any way I can make reference members take no space?
  For example:</p>
  <pre><code>#include &lt;iostream&gt;
  #include &lt;glm/glm.hpp&gt;
  
  struct MyClass : public glm::vec3{
    float&amp; rx = x;
    float&amp; ry = y;
    float&amp; rz = z;
  };
  
  int main() {
    std::cout &lt;&lt; sizeof(glm::vec3) &lt;&lt; std::endl;
    std::cout &lt;&lt; sizeof(MyClass) &lt;&lt; std::endl;
  }
  </code></pre>
  <p>the size of the class <code>glm::vec3</code> is 12 and the size of the class <code>MyClass</code> is 40.</p>
  <p>Is there any way I can make the references in <code>MyClass</code> takes no space? Just act as if all codes where <code>ri</code> is used, it is replaced by <code>i</code>?</p>
  <p>P.S. If you curious why I'm doing this, I'm adding custom attributes on class members for scanning, but I cannot change third-party codes like glm, that's why I need a wrapper, but if the wrapper is not the same size as the origin one, the space wasted is unacceptable.</p>