Hey men is it possible to build your own operator with your own definition and your own symbol for every type?

The operators like . , -> and * can not be overloaded.

>it possible to build your own operator with your own definition and your own symbol for every type?
Yes, it's called a member function with an informative name. But if you're thinking about creating something like ** for exponentiation or ^^ for a logical exclusive OR, you're out of luck. You can only overload existing C++ operators that support overloading.

Be a part of the DaniWeb community

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