diff -r fd991a24c857 -r a7eeb8af6b34 src/test/graph_test.cc --- a/src/test/graph_test.cc Mon May 03 14:43:49 2004 +0000 +++ b/src/test/graph_test.cc Mon May 03 17:06:38 2004 +0000 @@ -108,11 +108,12 @@ //NodeMap tests { Node k; - typename Graph::NodeMap m(G); - typename Graph::NodeMap const &cm = m; //Const map - typename Graph::NodeMap mdef(G,12); //Inicialize with default value - typename Graph::NodeMap mm(cm); //Copy - typename Graph::NodeMap dm(cm); //Copy from another type + typename Graph::template NodeMap m(G); + typename Graph::template NodeMap const &cm = m; //Const map + //Inicialize with default value + typename Graph::template NodeMap mdef(G,12); + typename Graph::template NodeMap mm(cm); //Copy + typename Graph::template NodeMap dm(cm); //Copy from another type int v; v=m[k]; m[k]=v; m.set(k,v); v=cm[k]; @@ -122,11 +123,12 @@ } { //bool NodeMap Node k; - typename Graph::NodeMap m(G); - typename Graph::NodeMap const &cm = m; //Const map - typename Graph::NodeMap mdef(G,12); //Inicialize with default value - typename Graph::NodeMap mm(cm); //Copy - typename Graph::NodeMap dm(cm); //Copy from another type + typename Graph::template NodeMap m(G); + typename Graph::template NodeMap const &cm = m; //Const map + //Inicialize with default value + typename Graph::template NodeMap mdef(G,12); + typename Graph::template NodeMap mm(cm); //Copy + typename Graph::template NodeMap dm(cm); //Copy from another type bool v; v=m[k]; m[k]=v; m.set(k,v); v=cm[k]; @@ -138,11 +140,12 @@ //EdgeMap tests { Edge k; - typename Graph::EdgeMap m(G); - typename Graph::EdgeMap const &cm = m; //Const map - typename Graph::EdgeMap mdef(G,12); //Inicialize with default value - typename Graph::EdgeMap mm(cm); //Copy - typename Graph::EdgeMap dm(cm); //Copy from another type + typename Graph::template EdgeMap m(G); + typename Graph::template EdgeMap const &cm = m; //Const map + //Inicialize with default value + typename Graph::template EdgeMap mdef(G,12); + typename Graph::template EdgeMap mm(cm); //Copy + typename Graph::template EdgeMap dm(cm); //Copy from another type int v; v=m[k]; m[k]=v; m.set(k,v); v=cm[k]; @@ -152,11 +155,12 @@ } { //bool EdgeMap Edge k; - typename Graph::EdgeMap m(G); - typename Graph::EdgeMap const &cm = m; //Const map - typename Graph::EdgeMap mdef(G,12); //Inicialize with default value - typename Graph::EdgeMap mm(cm); //Copy - typename Graph::EdgeMap dm(cm); //Copy from another type + typename Graph::template EdgeMap m(G); + typename Graph::template EdgeMap const &cm = m; //Const map + //Inicialize with default value + typename Graph::template EdgeMap mdef(G,12); + typename Graph::template EdgeMap mm(cm); //Copy + typename Graph::template EdgeMap dm(cm); //Copy from another type bool v; v=m[k]; m[k]=v; m.set(k,v); v=cm[k];