SHARE
TWEET

Untitled

a guest Jul 24th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Foo
  2. {
  3. public:    
  4.     Foo(const std::string& arg) try : m(arg, 100)
  5.     {
  6.         std::cout << "constructed";
  7.     }
  8.     catch(const std::exception& e)
  9.     {
  10.         std::cout << "failed";
  11.     }
  12.    
  13. private:
  14.     std::string m;
  15. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top