I am aware of boost ptr_containers for 1D: http://www.boost.org/doc/libs/1_46_1/libs/ptr_container/doc/reference.html
Should I extend to 2D using a vector<ptr_vector<BaseClass> > ?
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.
Yes, using a
vectorofptr_containersis easy and safe. I don’t believe there’s a special class for 2D polymorphic container anywhere.