Created
August 24, 2015 23:22
-
-
Save guludo/2a9eece3fbbe114c0cf9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class A { | |
public: | |
virtual void foo(int a, int b = 1) = 0; | |
}; | |
class B : public A { | |
public: | |
void foo(int a, int) { | |
} | |
}; | |
int main() { | |
B b; | |
b.foo(1); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
with this small change, it works, which should be the case in our codebase: