Changeset 1505 for trunk/yat/utility.h


Ignore:
Timestamp:
Aug 30, 2012, 12:39:37 AM (9 years ago)
Author:
Peter Johansson
Message:

update to latest yat source (including Id strings)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/utility.h

    r1463 r1505  
    22#define _theplu_yat_utility_utility_
    33
    4 // $Id: utility.h 2673 2011-12-03 00:30:12Z peter $
     4// $Id: utility.h 2818 2012-08-29 01:52:40Z peter $
    55
    66/*
     
    3434#include "deprecate.h"
    3535#include "Exception.h"
     36#include "yat_assert.h"
    3637
    3738#include <algorithm>
     
    377378        return true;
    378379      }
    379       if (std::numeric_limits<T>::is_signed && is_equal(s, "-inf")) {
     380      if (is_equal(s, "-inf")) {
     381        // unsigned types are caught in prologue
     382        YAT_ASSERT(std::numeric_limits<T>::is_signed);
    380383        result = -std::numeric_limits<T>::infinity();
    381384        return true;
Note: See TracChangeset for help on using the changeset viewer.