Ignore:
Timestamp:
Sep 26, 2009, 12:57:46 AM (13 years ago)
Author:
Peter Johansson
Message:

adding missing file Exception.h.diff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/yat/utility.h

    r795 r824  
    22#define _theplu_yat_utility_utility_
    33
    4 // $Id: utility.h 1971 2009-05-11 20:42:16Z peter $
     4// $Id: utility.h 2055 2009-09-08 18:23:43Z peter $
    55
    66/*
     
    205205    if (is_equal(s, "inf"))
    206206      return std::numeric_limits<T>::infinity();
    207     if (is_equal(s, "-inf"))
     207    if (is_equal(s, "-inf")) {
    208208      if (std::numeric_limits<T>::is_signed)
    209209        return -std::numeric_limits<T>::infinity();
     
    211211        throw std::runtime_error(std::string("yat::utility::convert(\"")+s+
    212212                                 std::string("\"): type is unsigned") );
     213    }
    213214    std::stringstream ss(s);
    214215    T a;
Note: See TracChangeset for help on using the changeset viewer.