title: C++ Function receiving an enum as one of its parameters
body: <p>I am trying to make a function receive an enum as one of its parameters. I had the enum as a global but for some reason my other files couldn't change the enum. so I was wondering how do you set an enum as an argument for a function like,</p>
  
  <pre><code>function(enum AnEnum eee);
  </code></pre>
  
  <p>or is there a better way to solve the above problem?  </p>
  
  <p>Okay a quick rephrasing of my question: I basically have numerous files and I want all of them to have access to my enum and be able to change the state of that enum also the majority of files that should be able to access it are in a class. The way I was attempting to fix this was by passing the enum into the function that needed to access it, I couldn't work out how to go about making a function receive an enum as one of its arguments.</p>