Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Foo
- {
- public:
- Foo(const std::string& arg) try : m(arg, 100)
- {
- std::cout << "constructed";
- }
- catch(const std::exception& e)
- {
- std::cout << "failed";
- }
- private:
- std::string m;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement