Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement