COIN-OR::LEMON - Graph Library

Changeset 383:0d5a628cb184 in lemon-0.x


Ignore:
Timestamp:
04/23/04 18:48:54 (20 years ago)
Author:
Mihaly Barasz
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@513
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/work/marci/bug/ansi_pedantic_bug.cc

    r316 r383  
    2828  GraphWrapper(Graph& _graph) : graph(&_graph) { }
    2929 
    30   template<typename T> class NodeMap : public Graph::NodeMap<T> {
     30  template<typename T> class NodeMap : public Graph::template NodeMap<T> {
     31    typedef typename Graph::template NodeMap<T> Parent;
    3132  public:
    3233    NodeMap(const GraphWrapper<Graph>& _G) : 
    33       Graph::NodeMap<T>(*(_G.graph)) { }
     34      Parent(*(_G.graph)) { }
    3435  };
    3536};
     
    4849  void augmentOnShortestPath() {
    4950    ResGW res_graph(*g);
    50     typename ResGW::NodeMap<int> pred(res_graph);
     51    typename ResGW::template NodeMap<int> pred(res_graph);
    5152  }
    5253};
Note: See TracChangeset for help on using the changeset viewer.