I can't seem to make an Atomic enum or enum class, I get the error
Cannot initialize a member subobject of type 'volatile TheEnum' with an rvalue of type 'int'
when I declare a Atomic<TheEnum> as a member of a class. What seems to work is declaring it as
Atomic<TheEnum> theEnum = Atomic<TheEnum>(TheEnum::Value1);
But I'm not sure if this is intended to work. Also it is a shame I can't have an Atomic<bool>.
Any insights on this?