COIN-OR::LEMON - Graph Library

Changeset 979:b5fb023cdb7b in lemon-0.x for src/benchmark


Ignore:
Timestamp:
11/10/04 22:59:59 (20 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.
File:
1 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) ;
Note: See TracChangeset for help on using the changeset viewer.