
24 Oct
2009
24 Oct
'09
1:54 p.m.
typedef string Colour;
struct edge_properties {
vector < set< Colour > & > eColours;
}
No, it won't compile. Template arguments of a vector are required to be default constructible. Reference types (set<color>&) are not default constructible. See: set<color>& x; // Error. Andrew Sutton andrew.n.sutton@gmail.com