Skip to content

Instantly share code, notes, and snippets.

@njlr
Created September 7, 2017 10:43
Show Gist options
  • Save njlr/bef61b88aefc71859e95735470458ae4 to your computer and use it in GitHub Desktop.
Save njlr/bef61b88aefc71859e95735470458ae4 to your computer and use it in GitHub Desktop.
int main() {
A x;
  B y;
  A z = y;
 
  std::cout << "x.what() = " << x.what() << std::endl;
  std::cout << "y.what() = " << y.what() << std::endl;
  std::cout << "z.what() = " << z.what() << std::endl;
 
  return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment