2
0
mirror of https://github.com/boostorg/graph.git synced 2026-01-30 07:52:10 +00:00

Move enum out of GraphParse::operator()

[SVN r33642]
This commit is contained in:
Douglas Gregor
2006-04-10 19:27:23 +00:00
parent fcf5d92ca6
commit 96a3f1fa67

View File

@@ -115,6 +115,7 @@ void getSubset(T&, const no_property&)
// get property subset
//===========================================================================
// graph parser
typedef enum{ PARSE_NUM_NODES, PARSE_VERTEX, PARSE_EDGE } GraphParserState;
template<class Graph_t, class VertexProperty, class EdgeProperty, class VertexPropertySubset,
class EdgePropertySubset>
@@ -131,8 +132,7 @@ struct GraphParser
typedef typename graph_traits<Graph>::vertex_descriptor Vertex;
std::vector<Vertex> nodes;
typedef enum{ PARSE_NUM_NODES, PARSE_VERTEX, PARSE_EDGE } State;
State state = PARSE_VERTEX;
GraphParserState state = PARSE_VERTEX;
unsigned int numLine = 1;
char c;