COIN-OR::LEMON - Graph Library

Ticket #487: a16b2b2a8c4e.patch

File a16b2b2a8c4e.patch, 799 bytes (added by Alpar Juttner, 5 years ago)
  • lemon/dim2.h

    # HG changeset patch
    # User Alpar Juttner <alpar@cs.elte.hu>
    # Date 1401512414 -7200
    #      Sat May 31 07:00:14 2014 +0200
    # Node ID a16b2b2a8c4e06f1f1856f6c57c392743412cb81
    # Parent  e00d7b681d8e8fa6cc94353e9b30388b27138043
    Add missing include header and std:: namespace spec. (#487)
    
    diff --git a/lemon/dim2.h b/lemon/dim2.h
    a b  
    2020#define LEMON_DIM2_H
    2121
    2222#include <iostream>
     23#include <algorithm>
    2324
    2425///\ingroup geomdat
    2526///\file
  • lemon/math.h

    diff --git a/lemon/math.h b/lemon/math.h
    a b  
    6767
    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
    7373  /// @}