Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <tuple>
- template<typename T>
- class foo
- {
- public:
- foo(T storage) : storage_(std::move(storage)) {}
- private:
- T storage_;
- };
- int main()
- {
- foo f { std::make_tuple(12,123,"1234") };
- foo f2 { std::make_tuple("321","23") };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement