title: How can I create an atomic enum in C++?
body: <p>Class <code>atomic</code> contains <a href="http://www.cplusplus.com/reference/atomic/#types">atomic versions of many different variable types</a>. However, it doesn't contain an atomic enum type. Is there a way to use atomic enums or make my own? As far as I can tell, my only option is to either not use enums or use mutexes/semaphores to protect them.</p>
  
  <p>Note: This <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=900965">bug report</a> I found mentions "std::atomic enum support", but I don't see any mention of an atomic enum type in the C++ Standard, so I'm not sure what that refers to.</p>