// For license of this file, see /LICENSE.md. #ifndef GLOBALS_H #define GLOBALS_H class Globals { public: template static bool hasFlag(T value, U flag); private: Globals(); }; template inline bool Globals::hasFlag(T value, U flag) { return (int(value) & int(flag)) == int(flag); } #endif // GLOBALS_H