
17 Jun
2008
17 Jun
'08
6:33 p.m.
AMDG Meththa wrote:
***template* <*typename* *Graph*, *typename* *PositionMap*> **
*void* *plot*(*Graph*& g, *PositionMap* position, std::string graph_name) {
*typedef* graph_traits<*Graph*>::vertex_iterator vi, vi_end;
...
I receive the following error to the location where I typdef the graph_traits.
plot.hpp expected initializer before '<' token KK_Algorithm line 26
does anyone know what I need to do to correct this problem. As I mentioned earlier - this worked perfectly with Visual C++.
All suggestions are welcome. Thank you.
Try typedef typename graph_traits<Graph>::vertex_iterator vi, vi_end; Visual C++ is a bit lax about typename. In Christ, Steven Watanabe