In the example above, how do I know which func I'm calling? More to the point, how do I call the one with the const?Code:class Foo { Foo() { } int func(int a) { return 0; } int func(int a) const { return 1; } } int main() { Foo foo; foo.func(); }
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 15 of 16
Threaded View
|
Click Here to Expand Forum to Full Width |