I was working on a project when I thought that maybe a ::. operator would look funny in some code. Just for fun I typed that into the global scope area like this:

::.
int main()
{
//etc...

and my code completion software said too many results to display. My question is what results could it be talking about? Is it possible to define global operators?

Recommended Answers

Yes you can Overide any operator you want. This can be done globally or at a specific level.

Jump to Post

All 4 Replies

Yes you can Overide any operator you want. This can be done globally or at a specific level.

Thanks firstPerson I forgot about the special casses.

Thank you!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.