disallow class enums and thread-local mutable classes and pointers to structs