this got error.it say ambiguous. why f1() call def#1.Both of the f1() functions can be called with no arguments. That's why it is ambiguous.Code:void f1(); void f1(int x=3); //... f1(); // which one will be called?
Regards,
Paul McKenzie
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 6 of 6
Thread: about overloading functionThreaded View
Tags for this Thread |
Click Here to Expand Forum to Full Width |