Changeset 3574


Ignore:
Timestamp:
Jan 12, 2017, 2:18:25 PM (5 years ago)
Author:
Jari Häkkinen
Message:

Fixed GCC v6.2 compiler issues (yat is now c++14 compliant)

Location:
branches/0.14-stable/yat
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/0.14-stable/yat/classifier/Target.cc

    r2919 r3574  
    8585    while(ok) {
    8686      if(sep=='\0')
    87         ok=(is>>word);
     87        ok=!(is>>word).fail();
    8888      else
    89         ok=getline(is, word, sep);
     89        ok=!getline(is, word, sep).fail();
    9090
    9191      // ignore empty words
  • branches/0.14-stable/yat/utility/utility.h

    r3550 r3574  
    529529    while(true) {
    530530      if(sep=='\0')
    531         ok=(is>>element);
     531        ok=!(is>>element).fail();
    532532      else
    533         ok=getline(is, element, sep);
     533        ok=!getline(is, element, sep).fail();
    534534      if(!ok)
    535535        break;
Note: See TracChangeset for help on using the changeset viewer.