COIN-OR::LEMON - Graph Library

Changeset 1311:6aea07d5ca48 in lemon


Ignore:
Timestamp:
05/31/14 07:00:14 (5 years ago)
Author:
Alpar Juttner <alpar@…>
Branch:
default
Phase:
public
Message:

Add missing include header and std:: namespace spec. (#487)

Location:
lemon
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lemon/dim2.h

    r761 r1311  
    2121
    2222#include <iostream>
     23#include <algorithm>
    2324
    2425///\ingroup geomdat
  • lemon/math.h

    r1270 r1311  
    6868  ///Round a value to its closest integer
    6969  inline double round(double r) {
    70     return (r > 0.0) ? floor(r + 0.5) : ceil(r - 0.5);
     70    return (r > 0.0) ? std::floor(r + 0.5) : std::ceil(r - 0.5);
    7171  }
    7272
Note: See TracChangeset for help on using the changeset viewer.