0
为什么这段代码不能编译(Cygwin)?向量模板中的T向量向量<T>类
#include <vector>
template <class Ttile>
class Tilemap
{
typedef std::vector<Ttile> TtileRow;
typedef std::vector<TtileRow> TtileMap;
typedef TtileMap::iterator TtileMapIterator; // error here
};
error: type
std::vector<std::vector<Ttile, std::allocator<_CharT> >, std::allocator<std::vector<Ttile, std::allocator<_CharT> > > >' is not derived from type
Tilemap'
typename,right!感谢你的回答。 – 2010-03-15 16:00:03