Pavel Sanda ha scritto:
and all of the enum elements to simple constants wouldn't seem to me as a bad idea,

you will lose the trick with binary mask when more debug levels
are chosen.
Can't you put in and (&) long long values as well ?

Perhaps, I was unclear. Let me explain better:

               typedef uint64_t Type;
               ///
               const Type NONE = 0;
               ///
               const Type INFO       = (1 << 0);   // 1
               ///
               const Type INIT       = (1 << 1);   // 2
               ///
               const Type KEY        = (1 << 2);   // 4
...

   T.

Reply via email to