3.4.0-asban megszuntettek a bug-ot.
authorklao
Fri, 23 Apr 2004 16:48:54 +0000
changeset 3830d5a628cb184
parent 382 f177fc597abd
child 384 f27d21767d38
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.
src/work/marci/bug/ansi_pedantic_bug.cc
     1.1 --- a/src/work/marci/bug/ansi_pedantic_bug.cc	Fri Apr 23 13:31:34 2004 +0000
     1.2 +++ b/src/work/marci/bug/ansi_pedantic_bug.cc	Fri Apr 23 16:48:54 2004 +0000
     1.3 @@ -27,10 +27,11 @@
     1.4  public:
     1.5    GraphWrapper(Graph& _graph) : graph(&_graph) { }
     1.6   
     1.7 -  template<typename T> class NodeMap : public Graph::NodeMap<T> { 
     1.8 +  template<typename T> class NodeMap : public Graph::template NodeMap<T> { 
     1.9 +    typedef typename Graph::template NodeMap<T> Parent;
    1.10    public:
    1.11      NodeMap(const GraphWrapper<Graph>& _G) :  
    1.12 -      Graph::NodeMap<T>(*(_G.graph)) { }
    1.13 +      Parent(*(_G.graph)) { }
    1.14    };
    1.15  };
    1.16  
    1.17 @@ -47,7 +48,7 @@
    1.18    MaxFlow(const Graph& _g) : g(&_g) { }
    1.19    void augmentOnShortestPath() {
    1.20      ResGW res_graph(*g);
    1.21 -    typename ResGW::NodeMap<int> pred(res_graph); 
    1.22 +    typename ResGW::template NodeMap<int> pred(res_graph); 
    1.23    }
    1.24  };
    1.25