Guest User

Untitled

a guest
Jul 19th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. #include <stdexcept>
  2.  
  3. class C {
  4. public :
  5. C() try {
  6. throw std::runtime_error("C::C");
  7. }
  8. catch (...) { }
  9. };
  10.  
  11. int main() {
  12. C c;
  13. }
  14.  
  15. terminate called after throwing an instance of 'std::runtime_error'
  16. what(): C::C
  17.  
  18. This application has requested the Runtime to terminate it in an unusual way.
  19. Please contact the application's support team for more information.
  20.  
  21. This application has requested the Runtime to terminate it in an unusual way.
  22. Please contact the application's support team for more information.
  23.  
  24. C() {
  25. throw std::runtime_error("C::C");
  26. }
Add Comment
Please, Sign In to add comment