Advertisement Jump to content
Sign in to follow this  
Dko

Need help with a error.

This topic is 4873 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

EDIT: never mind. Did a stupid mistake of forgetting a few includes. >.< Im just wondering what is the usual cause for this error, so I can find the cause? error C2593: 'operator <<' is ambiguous

Share this post


Link to post
Share on other sites
Advertisement
Multiple functions can have the same name as long as they have different arguments. Each time you call a function with that name the compiler figures out which is the best match. However sometimes two matches are equally good. Thus the function call is ambigous

void f(int i, char c);
void f(char c, int i);

char c1,c2;
f(c1,c2); //ambiguous because both of the f functions are equally decent matches

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!