COIN-OR::LEMON - Graph Library

Ticket #87: time_measure.patch

File time_measure.patch, 526 bytes (added by Alpar Juttner, 17 years ago)
  • lemon/time_measure.h

    MSVC compilation error fixed in time_measure.h
    
    diff --git a/lemon/time_measure.h b/lemon/time_measure.h
    a b  
    2424///\brief Tools for measuring cpu usage
    2525
    2626#ifdef WIN32
     27#define WIN32_LEAN_AND_MEAN
    2728#include <windows.h>
    2829#include <cmath>
    2930#else
     
    504505    ///\e Prints the ellapsed time on destruction.
    505506    ~TimeReport()
    506507    {
    507       _os << _title << *this << std::endl;
     508      _os << _title.c_str() << *this << std::endl;
    508509    }
    509510  };
    510511