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
Member variables aren't allowed to be templates. Only member functions can be templates. You'll have to templatize the enclosing class B instead:
template
class B {
std::list*> objects;
};