COIN-OR::LEMON - Graph Library

Ticket #258: dimacs-solver-msvc-fix.patch

File dimacs-solver-msvc-fix.patch, 621 bytes (added by Akos Ladanyi, 11 years ago)

24682336c38e

  • tools/dimacs-solver.cc

    # HG changeset patch
    # User Akos Ladanyi <ladanyi@tmit.bme.hu>
    # Date 1239040314 -3600
    # Node ID 24682336c38e57ff58db0bd4fc10644da85fc11b
    # Parent  b53a9068e3e433be1336c000857f73f38c605c60
    Fix compilation with MSVC (#258)
    
    diff --git a/tools/dimacs-solver.cc b/tools/dimacs-solver.cc
    a b  
    115115void solve(ArgParser &ap, std::istream &is, std::ostream &os,
    116116           DimacsDescriptor &desc)
    117117{
    118   std::stringstream iss(ap["infcap"]);
     118  std::stringstream iss(static_cast<std::string>(ap["infcap"]));
    119119  Value infty;
    120120  iss >> infty;
    121121  if(iss.fail())