error: expected unqualified id before '=' token
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
John Robertson escribió:
typedef vector
> VCS; typedef vector >::iterator vcs_iter, vcs_end;
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
vcs_iter is a type, not a variable. Try for(vcs_iter iter = vcolour_set.begin(); iter !=
vcolour_set.end(); ++iter)
Agustín K-ballo Bergé.-
Thanks Agustin, that worked.
--- On Fri, 10/9/09, Agustín K-ballo Bergé
typedef vector
> VCS; typedef vector >::iterator vcs_iter, vcs_end;
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
vcs_iter is a type, not a variable. Try for(vcs_iter iter = vcolour_set.begin(); iter !=
vcolour_set.end(); ++iter)
Agustín K-ballo Bergé.- _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Agustín K-ballo Bergé
-
John Robertson