This is mentioned in the Apple silicon porting guide:
On Apple silicon, the compiler defines the BOOL type to be a native bool, but on Intel-based Mac computers, it is a signed char.
But even though it works on Intel, I’d suggest that overloading that way could result in a confusing and error-prone API.
Topic:
Programming Languages
SubTopic:
General
Tags: