I am seeing the same thing here. At the risk of asking a silly question, what is "operator bool()" doing? Are you actually overloading casting the class to a bool, or is this doing something else?
Plus, I don't think I have ever seen an overloaded operator called like that before.
Just when you think you are starting to get to grips with C++
Nothing clever, it's just explicitly calling the operator bool. I use it mainly during Native Unit Tests as the Assert::IsTrue / IsFalse won't accept a std::shared_ptr without an explicit conversion. This is due to the explicit operator bool declaration. I suppose that I could have just cast it.
I didn't know you could call overloaded operators explicitly like this, but it makes sense, seeing it done and running some tests on it here.
I am not entirely sure that this is a bug, since in general using alt-g on the keyword "bool" doesn't make any sense, but since it is part of the operator, and it is the function name, I have put in a bug report for this. But this does illustrate the general point that Alt-g on overloaded operators is a bit tricky.