Created
February 22, 2016 21:21
-
-
Save meshell/be74189fde38e0fccf75 to your computer and use it in GitHub Desktop.
This file contains 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
struct base { | |
virtual std::string name() { return "default"; } | |
}; | |
struct derived : public base { | |
// compile error: 'std::string derived::mame()' marked 'override', but does not override | |
std::string mame() override { return "derived!" } | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment