SHARE
TWEET

Untitled

a guest Jun 18th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <tuple>
  2.  
  3. template<typename T>
  4. class foo
  5. {
  6. public:
  7.     foo(T storage) : storage_(std::move(storage)) {}
  8. private:
  9.     T storage_;
  10. };
  11.  
  12. int main()
  13. {
  14.     foo f { std::make_tuple(12,123,"1234") };
  15.  
  16.     foo f2 { std::make_tuple("321","23") };
  17. }
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
 
Top