문제

I tried to define map, but it doesn't let me to define:

....
typename graph_traits<MyGraphType>::vertex_descriptor NodeID;
typedef map<size_t, NodeID> IndexMap; //doesn't let me to create this
...
MyGraphType(10);
...
...
도움이 되었습니까?

해결책

The typename doesn't look as if it belongs in your snippet. (Which is too short to say anything.) Try:

typedef graph_traits<MyGraphType>::vertex_descriptor NodeID;
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top