Reading bool or enum attributes in C++

My problem seems to be simple, but I could not find or figure out the right
solution.
I need to read a value of a bool attribute. The attribute value is defined
as
enum {false, true},
so I define

I try read its value