In this piece I\'m trying to declare in Class B a list that can hold objects of Class A of any type, such as A, A, A. I intend to add A
Make B class template just like you've made A a class template:
B
A
template class B { std::list*> objects; };