Changeset 727 for trunk/lib


Ignore:
Timestamp:
Dec 11, 2008, 4:02:38 PM (13 years ago)
Author:
Jari Häkkinen
Message:

Changes needed to cleanly compile on g++ 4.3 on SuSE 11 x64.

Location:
trunk/lib
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Configuration.cc

    r693 r727  
    33/*
    44  Copyright (C) 2007 Peter Johansson
     5  Copyright (C) 2008 Jari Häkkinen
    56
    67  This file is part of svndigest, http://dev.thep.lu.se/svndigest
     
    166167      }
    167168      else if (section == "copyright") {
    168         if (lhs=="missing-copyright-warning")
     169        if (lhs=="missing-copyright-warning") {
    169170          if (equal_false(rhs))
    170171            missing_copyright_warning_ = false;
     
    174175            throw Config_error(line, "");
    175176          }
     177        }
    176178      }
    177179      else if (section == "parsing-codons") {
  • trunk/lib/Functor.h

    r693 r727  
    66/*
    77  Copyright (C) 2005, 2006, 2007 Jari Häkkinen, Peter Johansson
     8  Copyright (C) 2008 Jari Häkkinen
    89
    910  This file is part of svndigest, http://dev.thep.lu.se/svndigest
     
    2324*/
    2425
    25 //#include <algorithm>
     26#include <algorithm>
    2627#include <functional>
    27 //#include <iosfwd>
    2828#include <string>
    2929#include <utility>
  • trunk/lib/Gnuplot.cc

    r693 r727  
    44  Copyright (C) 2006 Jari Häkkinen, Peter Johansson
    55  Copyright (C) 2007 Peter Johansson
     6  Copyright (C) 2008 Jari Häkkinen
    67
    78  This file is part of svndigest, http://dev.thep.lu.se/svndigest
     
    2425
    2526#include <cstdio>
     27#include <cstdlib>
    2628#include <string>
    2729#include <unistd.h>
  • trunk/lib/Node.cc

    r713 r727  
    33/*
    44  Copyright (C) 2005, 2006, 2007 Jari Häkkinen, Peter Johansson
     5  Copyright (C) 2008 Jari Häkkinen
    56
    67  This file is part of svndigest, http://dev.thep.lu.se/svndigest
     
    148149  const SVNlog& Node::log(void) const
    149150  {
    150     if (!log_)
     151    if (!log_) {
    151152      if (ignore())
    152153        log_ = new SVNlog;
    153154      else
    154155        log_ = new SVNlog(log_core());
     156    }
    155157    return *log_;
    156158  }
  • trunk/lib/OptionHelp.cc

    r705 r727  
    33/*
    44  Copyright (C) 2007 Jari Häkkinen, Peter Johansson
     5  Copyright (C) 2008 Jari Häkkinen
    56
    67  This file is part of svndigest, http://dev.thep.lu.se/svndigest
     
    2324#include "CommandLine.h"
    2425
     26#include <cstdlib>
    2527#include <sstream>
    2628#include <string>
  • trunk/lib/utility.h

    r724 r727  
    2727#include <functional>
    2828#include <iosfwd>
     29#include <limits>
    2930#include <sstream>
     31#include <stdexcept>
    3032#include <string>
    31 #include <stdexcept>
    3233#include <utility>
    3334#include <vector>
     
    251252    if (is_equal(s, "inf"))
    252253      return std::numeric_limits<T>::infinity();
    253     if (is_equal(s, "-inf"))
     254    if (is_equal(s, "-inf")) {
    254255      if (std::numeric_limits<T>::is_signed)
    255256        return -std::numeric_limits<T>::infinity();
     
    257258        throw std::runtime_error(std::string("convert(\"")+s+
    258259                                 std::string("\"): type is unsigned") );
     260    }
     261
    259262    std::stringstream ss(s);
    260263    T a;
Note: See TracChangeset for help on using the changeset viewer.