Ignore:
Timestamp:
Jan 16, 2017, 4:54:43 AM (5 years ago)
Author:
Peter
Message:

merge release 0.14 into trunk

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/yat/utility/utility.h

    r3550 r3579  
    99  Copyright (C) 2007, 2008 Jari Häkkinen, Peter Johansson
    1010  Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016 Peter Johansson
     11  Copyright (C) 2017 Jari Häkkinen
    1112
    1213  This file is part of the yat library, http://dev.thep.lu.se/yat
     
    529530    while(true) {
    530531      if(sep=='\0')
    531         ok=(is>>element);
     532        ok=!(is>>element).fail();
    532533      else
    533         ok=getline(is, element, sep);
     534        ok=!getline(is, element, sep).fail();
    534535      if(!ok)
    535536        break;
Note: See TracChangeset for help on using the changeset viewer.