title: Bitwise or (|) in function argument
body: <p>I was wondering how to do this:</p>
  
  <pre><code>func(param1|param2|param3)
  </code></pre>
  
  <p>and then extract those values in the function, I have seen this in multiple functions, or is it better to do this:</p>
  
  <pre><code>func(param1, ...)
  </code></pre>
  
  <p>?</p>
  
  <p>I am trying to do this in C++, and I was thinking of having the parameters to the function as values in a enum.</p>
  
  <p>How do I solve this?</p>