Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdexcept>
- class C {
- public :
- C() try {
- throw std::runtime_error("C::C");
- }
- catch (...) { }
- };
- int main() {
- C c;
- }
- terminate called after throwing an instance of 'std::runtime_error'
- what(): C::C
- This application has requested the Runtime to terminate it in an unusual way.
- Please contact the application's support team for more information.
- This application has requested the Runtime to terminate it in an unusual way.
- Please contact the application's support team for more information.
- C() {
- throw std::runtime_error("C::C");
- }
Add Comment
Please, Sign In to add comment