B
barcaroller
I have two template classes, where one uses the first for a list type.
template <typename T> class B
{
};
template <typename T> class A
{
typedef list< B<T> >::iterator MyIterator_t; // <--- error here
}
Compiler error: type std::list, std::allocator > > is not derived
from type A
Does anyone know what the error means and how to fix it?
template <typename T> class B
{
};
template <typename T> class A
{
typedef list< B<T> >::iterator MyIterator_t; // <--- error here
}
Compiler error: type std::list, std::allocator > > is not derived
from type A
Does anyone know what the error means and how to fix it?