use an anonymous enum definition so code compiles under Objc-C++