COIN-OR::LEMON - Graph Library

Changeset 979:b5fb023cdb7b in lemon-0.x


Ignore:
Timestamp:
11/10/04 22:59:59 (16 years ago)
Author:
Mihaly Barasz
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1367
Message:

"make check" pass under icc v8.0

  • There are _many_ remarks which are worth examinating! Non-inline (and even not template) functions in header files for example.
Location:
src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/benchmark/bench_tools.h

    r921 r979  
    2929
    3030///\bug 2 is not a prime according to this function!
    31 bool isPrim(int n)
     31///
     32///\bug This function should go out of header file. I'm making it
     33/// inline for now.
     34inline bool isPrim(int n)
    3235{
    3336  if(n%2) {
     
    4043
    4144///Finds the smallest prime not less then \c n.
    42 int nextPrim(int n)
     45
     46///\bug This function should go out of header file. I'm making it
     47/// inline for now.
     48inline int nextPrim(int n)
    4349{
    4450  for(n+=!(n%2);!isPrim(n);n+=2) ;
  • src/lemon/array_map.h

    r978 r979  
    365365      typedef ArrayMap<Graph, Node, NodeIt, NodeIdMap, _Value> Parent;
    366366
    367       typedef typename Parent::Graph Graph;
     367      //typedef typename Parent::Graph Graph;
    368368      typedef typename Parent::Value Value;
    369369
     
    386386      typedef ArrayMap<Graph, Edge, EdgeIt, EdgeIdMap, _Value> Parent;
    387387
    388       typedef typename Parent::Graph Graph;
     388      //typedef typename Parent::Graph Graph;
    389389      typedef typename Parent::Value Value;
    390390
  • src/lemon/default_map.h

    r946 r979  
    188188      typedef DefaultMap<Graph, Node, NodeIt, NodeIdMap, _Value> Parent;
    189189
    190       typedef typename Parent::Graph Graph;
     190      //typedef typename Parent::Graph Graph;
    191191      typedef typename Parent::ValueType ValueType;
    192192
     
    209209      typedef DefaultMap<Graph, Edge, EdgeIt, EdgeIdMap, _Value> Parent;
    210210
    211       typedef typename Parent::Graph Graph;
     211      //typedef typename Parent::Graph Graph;
    212212      typedef typename Parent::ValueType ValueType;
    213213
  • src/lemon/vector_map.h

    r978 r979  
    249249      typedef VectorMap<Graph, Node, NodeIdMap, _Value> Parent;
    250250
    251       typedef typename Parent::Graph Graph;
     251      //typedef typename Parent::Graph Graph;
    252252      typedef typename Parent::Value Value;
    253253
     
    269269      typedef VectorMap<Graph, Edge, EdgeIdMap, _Value> Parent;
    270270
    271       typedef typename Parent::Graph Graph;
     271      //typedef typename Parent::Graph Graph;
    272272      typedef typename Parent::Value Value;
    273273
Note: See TracChangeset for help on using the changeset viewer.