Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- class problem
- {
- public:
- problem(int val) : m_val(val) { }
- void debug()
- {
- std::cout << "debug" << std::endl;
- }
- void trace()
- {
- std::cout << "val: " << m_val << std::endl;
- }
- private:
- int m_val;
- };
- int main()
- {
- problem* proml = nullptr;
- try {
- proml->debug();
- }
- catch(...) {
- std::cout << "bad call" << std::endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement