I would like to redefine the built-in type bool inside a library's namespaces and classes because they need to work differently but I would like to keep the name bool : ex::bool, ex::false, ex::true. But my compiler doesn't let me do that, I tried something like this :
namespace ex {
typedef uint8_t bool;
const uint8_t false = 0;
}
I also tried prefixing bool and false with ex:: inside the definition to emphasis the fact that it is in ex but it doesn't work. What could I do to have ex::bool ?