title: How do you pass an enum by reference?
body: <p>I have an enum with four keys I'm taking as input for an interface program and I'd like to pass the enum by value to the interface function, which has become quite long. The enum is like this:</p>
  
  <pre><code>enum MYKEYS {
    W, S, O, L
  };
  </code></pre>
  
  <p>There's also a boolean array that I have to pass by reference, which is also a little tricky. </p>
  
  <pre><code>bool key[4] = { false, false, false, false };
  </code></pre>
  
  <p>Does anyone know the proper syntax to pass both of these as reference in a function, similar to: </p>
  
  <pre><code>function(int &amp; anintreference);
  </code></pre>