Are there boost make_shared_array and make_scope_ptr or only make_shared?
Are there boost make_shared_array and make_scope_ptr or only make_shared ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
boost::make_scoped_ptrwouldn’t work, since you can’t transfer ownership from ascoped_ptr. At least, not without an explicit call toswap.And with Boost 1.53, there’s not much reason to use
shared_array, since you can just useshared_ptrwith an array type. So just useboost::make_shared.