A
Arne Schmitz
Why do I get the following error:
error: type 'std::vector<TObject*, std::allocator<TObject*> >' is not
derived from type 'bar<TObject>'
with the following code:
#include <vector>
template<class TObject>
class bar
{
public:
typedef std::vector<TObject *> ElemVector;
typedef std::vector<TObject *>::size_type size_type;
// I even wanted to write:
// typedef ElemVector::size_type size_type;
};
I guess this is something obvious?
Arne
error: type 'std::vector<TObject*, std::allocator<TObject*> >' is not
derived from type 'bar<TObject>'
with the following code:
#include <vector>
template<class TObject>
class bar
{
public:
typedef std::vector<TObject *> ElemVector;
typedef std::vector<TObject *>::size_type size_type;
// I even wanted to write:
// typedef ElemVector::size_type size_type;
};
I guess this is something obvious?
Arne