Boost logo

Boost Users :

From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-06-17 14:33:26


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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net