R
Roger Leigh
In a header, I have the following class template:
template<typename _ListItem>
class SimpleListItemConvert : public pqxxobject::RowConvert<_ListItem>
{
};
However, this won't compile:
$ g++ -c simplelist.cc -o simplelist.o
In file included from simplelist.h:11,
from simplelist.cc:1:
simplelist.h:127: error: `SimpleListItemConvert' is not a
template type
Why is it not a template type? Can a template class not inherit from
another template? At this point, I haven't even tried to instantiate
it.
Thanks,
Roger
template<typename _ListItem>
class SimpleListItemConvert : public pqxxobject::RowConvert<_ListItem>
{
};
However, this won't compile:
$ g++ -c simplelist.cc -o simplelist.o
In file included from simplelist.h:11,
from simplelist.cc:1:
simplelist.h:127: error: `SimpleListItemConvert' is not a
template type
Why is it not a template type? Can a template class not inherit from
another template? At this point, I haven't even tried to instantiate
it.
Thanks,
Roger