k0k0 Posted May 6, 2011 Share Posted May 6, 2011 Is it possible to overload operators for non-objects like typedef? Link to comment Share on other sites More sharing options...
Richard Robertson Posted May 6, 2011 Share Posted May 6, 2011 Yes. You could even overload things like int + int if you really wanted. Link to comment Share on other sites More sharing options...
Valik Posted May 6, 2011 Share Posted May 6, 2011 No. You cannot overload operators for intrinsic types. Link to comment Share on other sites More sharing options...
Richard Robertson Posted May 6, 2011 Share Posted May 6, 2011 Ok. That's certainly a better answer than my misremembering something I tried a couple years ago. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now