Hi,
I was working with an object of a given class and I needed to initialize something in it and record how it was initialized. Either in way 1 or 2, if the object is not initialized I would have this variable to get let’s say 0 so that I can exit() if trying to use this uninitialized object. This can be done with an int, however it would be nice to have a variable that can take just three values, something like:
enum Tribus
{
on,
off,
null,
};
In the same way as a bool can take true or false. I can write this myself but it would be good to have it centralized as part of ROOT. I am not sure if this type exists in ROOT, at least I havent found it, I am sure it does not exist in C++.