Is it possible to create operator overloads for non-objects (like typedef-ed arrays)?
stkarnivor
0
Newbie Poster
Recommended Answers
Jump to PostTypedefs are just aliases, they don't "create a new type". So, you have to overload the operator for the underlying type. You can also overload with the typedef, but that will just overload for the underlying type as well.
So, basically, the rule applies as for the underlying type. …
All 3 Replies
mike_2000_17
2,669
21st Century Viking
Team Colleague
Featured Poster
stkarnivor
0
Newbie Poster
mike_2000_17
2,669
21st Century Viking
Team Colleague
Featured Poster
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.