Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Y* func(param)
- {
- return new Y(param);
- }
- std::share_ptr<Y> func(param)
- {
- std::share_ptr<Y> y(new Y(param));
- return y;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement