[Lemon-commits] [lemon_svn] klao: r513 - hugo/trunk/src/work/marci/bug
Lemon SVN
svn at lemon.cs.elte.hu
Mon Nov 6 20:39:52 CET 2006
Author: klao
Date: Fri Apr 23 18:48:54 2004
New Revision: 513
Modified:
hugo/trunk/src/work/marci/bug/ansi_pedantic_bug.cc
Log:
3.4.0-asban megszuntettek a bug-ot.
Egyaltalan nem hagyta leforditani a file-t, ha nem irtunk elet "typename" es
"template" kulcsszot.
Azota viszont mar a 3.3-as is gond nelkul forditja.
Modified: hugo/trunk/src/work/marci/bug/ansi_pedantic_bug.cc
==============================================================================
--- hugo/trunk/src/work/marci/bug/ansi_pedantic_bug.cc (original)
+++ hugo/trunk/src/work/marci/bug/ansi_pedantic_bug.cc Fri Apr 23 18:48:54 2004
@@ -27,10 +27,11 @@
public:
GraphWrapper(Graph& _graph) : graph(&_graph) { }
- template<typename T> class NodeMap : public Graph::NodeMap<T> {
+ template<typename T> class NodeMap : public Graph::template NodeMap<T> {
+ typedef typename Graph::template NodeMap<T> Parent;
public:
NodeMap(const GraphWrapper<Graph>& _G) :
- Graph::NodeMap<T>(*(_G.graph)) { }
+ Parent(*(_G.graph)) { }
};
};
@@ -47,7 +48,7 @@
MaxFlow(const Graph& _g) : g(&_g) { }
void augmentOnShortestPath() {
ResGW res_graph(*g);
- typename ResGW::NodeMap<int> pred(res_graph);
+ typename ResGW::template NodeMap<int> pred(res_graph);
}
};
More information about the Lemon-commits
mailing list