|
Boost Users : |
Subject: [Boost-users] error: expected unqualified id before '=' token
From: John Robertson (jrobertson7711_at_[hidden])
Date: 2009-10-09 14:02:21
The following compiles OK
typedef string Colour;
struct edge_properties
{
vector < set< Colour > > eColours;
}
until I get to
template < typename Graph >
void populate_arrow_maps(const Graph & g)
{
typename graph_traits<Graph>::edge_iterator edge_iter, edges_end;
typedef vector <set< string > > VCS;
typedef vector <set< string > >::iterator vcs_iter, vcs_end;
for (tie(edge_iter, edges_end) =
edges(g); edge_iter != edges_end; ++edge_iter)
{
VCS & vcolour_set = get(m_eColours_map, *edge_iter);
for(vcs_iter = vcolour_set.begin(); vcs_iter != vcolour_set.end(); ++vcs_iter) {
;
}
}
}
Then compiler says
error: expected unqualified id before '=' token
Referring to the line which is underlined
above.
So its referring to vcs_iter.
Whats wrong?
Thanks
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